Skip to content

Commit

Permalink
Use authenticated GH API requests in "Compile Examples" CI workflow (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
aentinger authored Feb 11, 2021
1 parent be365c9 commit 309276a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
fetch-depth: 1
- uses: arduino/actions/libraries/compile-examples@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.fqbn }}

0 comments on commit 309276a

Please sign in to comment.