Skip to content

Commit fc9a4ce

Browse files
authored
ci: avoid ratelimits by authenticating with GitHub (#420)
1 parent f029f8e commit fc9a4ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@ on:
66
pull_request:
77
branches: [master, beta]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build_and_lint:
1114
runs-on: ${{ matrix.os }}
1215
strategy:
1316
fail-fast: false
1417
matrix:
1518
os: [ubuntu-latest, windows-latest, macos-latest]
19+
env:
20+
# octokit tries to use GITHUB_TOKEN opportunistically, so providing the token should increase our rate limits
21+
GITHUB_TOKEN: ${{ github.token }}
1622
steps:
1723
- uses: actions/checkout@v4
1824

0 commit comments

Comments
 (0)