From ff72efd249cb0d359db5eb0dcc1d63ad0465a7e4 Mon Sep 17 00:00:00 2001 From: mattgrul <40339403+mattgrul@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:17:30 +0000 Subject: [PATCH] Update action.yml --- action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ea7a224..1fa42aa 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 @@ -50,10 +54,13 @@ runs: php-version: ${{ inputs.php-version }} tools: composer:${{ inputs.composer-version }} coverage: none + env: + COMPOSER_TOKEN: ${{ secrets.YOUR_TOKEN }} - 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