Skip to content

Commit

Permalink
Use authenticated GH API requests in "Compile Examples" CI workflow (a…
Browse files Browse the repository at this point in the history
…rduino-libraries#73)

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 482e928 commit 3ac1a71
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 @@ -26,6 +26,7 @@ jobs:
- name: Compile examples
uses: arduino/compile-sketches@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: arduino:samd:mkrnb1500
libraries: |
# Install the WiFi101 library from the local path
Expand Down

0 comments on commit 3ac1a71

Please sign in to comment.