diff --git a/.github/workflows/check-extension.yaml b/.github/workflows/check-extension.yaml index 881639b..8166644 100644 --- a/.github/workflows/check-extension.yaml +++ b/.github/workflows/check-extension.yaml @@ -164,6 +164,7 @@ jobs: - uses: graycoreio/github-actions-magento2/coding-standard@main with: path: ${{ inputs.path }} + composer_auth: ${{ secrets.composer_auth }} integration_test: runs-on: ${{ matrix.os }} diff --git a/coding-standard/action.yml b/coding-standard/action.yml index 19ca624..2a4d2b1 100644 --- a/coding-standard/action.yml +++ b/coding-standard/action.yml @@ -32,6 +32,11 @@ inputs: default: 'false' required: false + composer_auth: + required: false + default: "" + description: "Composer authentication credentials (contents of auth.json as a JSON string)" + runs: using: composite steps: @@ -56,6 +61,8 @@ runs: shell: bash working-directory: ${{ inputs.path }} run: composer require "magento/magento-coding-standard:${{ inputs.version || '*' }}" "magento/php-compatibility-fork" + env: + COMPOSER_AUTH: ${{ inputs.composer_auth }} - name: Register Coding Standard shell: bash