From 829a0c626fb332c5657c53bc30b0200358a001a2 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Fri, 12 Feb 2021 07:29:05 +0100 Subject: [PATCH] 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. --- .github/workflows/compile-examples.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 313c270e..28e61cad 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -110,6 +110,7 @@ jobs: - name: Compile examples uses: arduino/actions/libraries/compile-examples@master with: + github-token: ${{ secrets.GITHUB_TOKEN }} fqbn: ${{ matrix.board.fqbn }} libraries: | - name: Adafruit MQTT Library @@ -149,4 +150,4 @@ jobs: uses: actions/upload-artifact@v1 with: name: size-deltas-reports - path: size-deltas-reports \ No newline at end of file + path: size-deltas-reports