Skip to content

Commit f08ab29

Browse files
committed
Configure arduino/compile-sketches CI action to do authenticated API requests
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 unauthentticated 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 59ef78f commit f08ab29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/compile-examples.yml

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
- name: Compile examples
7171
uses: arduino/compile-sketches@main
7272
with:
73+
github-token: ${{ secrets.GITHUB_TOKEN }}
7374
fqbn: ${{ matrix.board.fqbn }}
7475
libraries: |
7576
${{ env.UNIVERSAL_LIBRARIES }}

0 commit comments

Comments
 (0)