Skip to content

Commit 85fddde

Browse files
committed
Configure integration workflow for authenticated API requests
The `arduino/compile-sketches` GitHub Actions action queries the GitHub API for the base ref of the pull request, which is used for the memory deltas determination. GitHub does rate limiting of API requests and if the limit is exceeded, a spurious failure of the workflow run will occur. Authenticated API requests are given a more generous API request allowance, so providing the action with the automatically generated GitHub access token stored in `secrets.GITHUB_TOKEN` to use for the API requests should prevent any such workflow run failures.
1 parent d2e398d commit 85fddde

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/test-integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
uses: ./
8585
with:
8686
cli-version: 0.15.1
87+
github-token: ${{ secrets.GITHUB_TOKEN }}
8788
platforms: ${{ matrix.board.platforms }}
8889
fqbn: ${{ matrix.board.fqbn }}
8990
libraries: ${{ matrix.board.libraries }}
@@ -202,6 +203,7 @@ jobs:
202203
- name: Run action again
203204
uses: ./extras/compile-sketches
204205
with:
206+
github-token: ${{ secrets.GITHUB_TOKEN }}
205207
platforms: ${{ matrix.board.platforms }}
206208
fqbn: ${{ matrix.board.fqbn }}
207209
libraries: ${{ matrix.board.libraries }}
@@ -226,6 +228,7 @@ jobs:
226228
# Use action from local path
227229
uses: ./
228230
with:
231+
github-token: ${{ secrets.GITHUB_TOKEN }}
229232
platforms: |
230233
- name: arduino:avr
231234
- source-path: ${{ env.TESTDATA_PLATFORMS_PATH }}/PythonPackageDependent
@@ -255,6 +258,7 @@ jobs:
255258
# Use action from local path
256259
uses: ./
257260
with:
261+
github-token: ${{ secrets.GITHUB_TOKEN }}
258262
platforms: |
259263
- name: arduino:avr
260264
- source-path: ${{ env.TESTDATA_PLATFORMS_PATH }}/PyserialDependent
@@ -343,6 +347,7 @@ jobs:
343347
uses: ./
344348
with:
345349
fqbn: arduino:avr:uno
350+
github-token: ${{ secrets.GITHUB_TOKEN }}
346351
libraries: |
347352
-
348353
sketch-paths: |

0 commit comments

Comments
 (0)