Skip to content

Commit

Permalink
Add COMPOSER_AUTH env variable to workflows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Potherca committed Sep 13, 2024
1 parent 026a90d commit fdae151
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/integrationtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/phplint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/securitycheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fdae151

Please sign in to comment.