Skip to content

Commit 0c85494

Browse files
authored
Use authenticated API requests in "Compile Examples" CI workflow
The arduino/compile-sketches GitHub Actions action used in the "Compile Examples" workflow queries the GitHub API for the base ref of the pull request, which is used for the memory deltas determination. There were a couple workflow runs recently (1, 2) that failed due to rate limiting. Authenticated API requests are given a more generous API request allowance, so providing the action with the automatically generated GitHub access token should prevent this from happening again.
1 parent a2c06d7 commit 0c85494

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
@@ -64,6 +64,7 @@ jobs:
6464
- name: Compile examples
6565
uses: arduino/actions/libraries/compile-examples@master
6666
with:
67+
github-token: ${{ secrets.GITHUB_TOKEN }}
6768
fqbn: ${{ matrix.board.fqbn }}
6869
platforms: |
6970
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain

0 commit comments

Comments
 (0)