Skip to content

Commit

Permalink
Merge pull request #4422 from alphagov/editorconfig-github-token
Browse files Browse the repository at this point in the history
Fix rate limit issue with EditorConfig checker CLI
  • Loading branch information
colinrotherham authored Nov 6, 2023
2 parents a1e151d + 1184c15 commit 25f4379
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/diff-change-to-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Add comment to PR
uses: actions/github-script@v6.4.1
with:
github-token: ${{secrets.GITHUB_TOKEN}}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { commentDiffs } = await import('${{ github.workspace }}/.github/workflows/scripts/comments.mjs')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stats-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Add comment to PR
uses: actions/github-script@v6.4.1
with:
github-token: ${{secrets.GITHUB_TOKEN}}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { commentStats } = await import('${{ github.workspace }}/.github/workflows/scripts/comments.mjs')
// PR information
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
runs-on: ${{ matrix.runner }}
needs: [install]

env:
# Authorise GitHub API requests for EditorConfig checker binary
# https://www.npmjs.com/package/editorconfig-checker
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
fail-fast: false

Expand Down

0 comments on commit 25f4379

Please sign in to comment.