From fdae15145dab3846a10be9194417bd558a2681fe Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Thu, 5 Jan 2023 11:25:31 +0100 Subject: [PATCH] Add COMPOSER_AUTH env variable to workflows Because of the amount of GitHub API calls composer does, the CI runs into a rate limit. This causes jobs to fail or be aborted. By adding the GITHUB_TOKEN as auth method, this can be avoided. --- .github/workflows/integrationtest.yml | 3 +++ .github/workflows/phplint.yml | 3 +++ .github/workflows/quicktest.yml | 3 +++ .github/workflows/securitycheck.yml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/.github/workflows/integrationtest.yml b/.github/workflows/integrationtest.yml index 48be520e..66cb227a 100644 --- a/.github/workflows/integrationtest.yml +++ b/.github/workflows/integrationtest.yml @@ -10,6 +10,9 @@ on: # Allow manually triggering the workflow. workflow_dispatch: +env: + COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}' + # Cancels all previous workflow runs for the same branch that have not yet completed. concurrency: # The concurrency group contains the workflow name and the branch name. diff --git a/.github/workflows/phplint.yml b/.github/workflows/phplint.yml index 17b374a7..ad640292 100644 --- a/.github/workflows/phplint.yml +++ b/.github/workflows/phplint.yml @@ -7,6 +7,9 @@ on: # Allow manually triggering the workflow. - workflow_dispatch +env: + COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}' + # Cancels all previous workflow runs for the same branch that have not yet completed. concurrency: # The concurrency group contains the workflow name and the branch name. diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index 2071de5a..bec996b4 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -9,6 +9,9 @@ on: # Allow manually triggering the workflow. workflow_dispatch: +env: + COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}' + # Cancels all previous workflow runs for the same branch that have not yet completed. concurrency: # The concurrency group contains the workflow name and the branch name. diff --git a/.github/workflows/securitycheck.yml b/.github/workflows/securitycheck.yml index ad225bb9..c387c13e 100644 --- a/.github/workflows/securitycheck.yml +++ b/.github/workflows/securitycheck.yml @@ -7,6 +7,9 @@ on: # Allow manually triggering the workflow. - workflow_dispatch +env: + COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}' + # Cancels all previous workflow runs for the same branch that have not yet completed. concurrency: # The concurrency group contains the workflow name and the branch name.