From 13580d841abf809c3637d036f9286681593302da Mon Sep 17 00:00:00 2001 From: mattgrul <40339403+mattgrul@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:21:19 +0000 Subject: [PATCH] Update action to allow composer to access multiple private repositories using secret --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ea7a224..fbcff76 100644 --- a/action.yml +++ b/action.yml @@ -11,6 +11,10 @@ inputs: description: 'The version of PHP to use.' required: false default: '8.3' + composer-token: + description: 'Token for Composer authentication.' + required: false + default: '' composer-version: description: 'The version of Composer to use.' required: false @@ -52,8 +56,9 @@ runs: coverage: none - id: configure-composer + if: inputs.composer-token != '' name: 'Configure Composer GitHub Token' - run: composer config --global --auth github-oauth.github.com ${{ github.token }} + run: composer config --global --auth github-oauth.github.com ${{ inputs.composer-token }} shell: bash - id: download-satis