Skip to content

Commit 309276a

Browse files
authored
Use authenticated GH API requests in "Compile Examples" CI workflow (arduino-libraries#159)
The arduino/compile-sketches GitHub Actions action needs to do a GitHub API request to determine the base branch of a PR for the deltas determination. If a token is not defined via the action's github-token input, it does an unauthenticated API request, which is subject to more strict rate limiting policy. Although its unlikely for the number of API requests to exceed the unauthenticated allowance, use of a token ensures it will never happen. GitHub Actions provides a token for this purpose, so there is no need to set up a custom one.
1 parent be365c9 commit 309276a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: .github/workflows/compile-examples.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
fetch-depth: 1
2020
- uses: arduino/actions/libraries/compile-examples@master
2121
with:
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
2223
fqbn: ${{ matrix.fqbn }}

0 commit comments

Comments
 (0)