Skip to content

Commit 2d3db6a

Browse files
author
Pimcore Deployments
committed
🔄 synced file(s) with pimcore/workflows-collection-public
1 parent 8e24105 commit 2d3db6a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@ jobs:
3131
with:
3232
php-version: "8.4"
3333

34-
- name: "Add authentication for private pimcore packages"
34+
- name: "Configure private pimcore package repository"
3535
run: |
3636
composer config repositories.private-packagist '{"type": "composer", "url": "https://repo.pimcore.com/github-actions/", "canonical": true}'
37-
composer config --global --auth http-basic.repo.pimcore.com github-actions ${{ secrets.COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN }}
3837
3938
- name: "Install dependencies with Composer"
4039
uses: "ramsey/composer-install@v3"
40+
# Pass the private-Packagist token via a step-scoped env var instead of
41+
# writing it to Composer's global auth.json. A global credential would
42+
# persist on the runner filesystem and remain readable by the Copilot
43+
# coding agent after setup; COMPOSER_AUTH lives only for this step.
44+
env:
45+
COMPOSER_AUTH: '{"http-basic":{"repo.pimcore.com":{"username":"github-actions","password":"${{ secrets.COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN }}"}}}'
4146
with:
4247
composer-options: "--no-scripts --ignore-platform-reqs"
4348

0 commit comments

Comments
 (0)