Skip to content

Commit 3ac1a71

Browse files
authored
Use authenticated GH API requests in "Compile Examples" CI workflow (#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.
1 parent 482e928 commit 3ac1a71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/compile-examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- name: Compile examples
2727
uses: arduino/compile-sketches@main
2828
with:
29+
github-token: ${{ secrets.GITHUB_TOKEN }}
2930
fqbn: arduino:samd:mkrnb1500
3031
libraries: |
3132
# Install the WiFi101 library from the local path

0 commit comments

Comments
 (0)