From e92e0951b8471d99c43955b1c6915d3404014a52 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Thu, 11 Feb 2021 10:51:15 +0100 Subject: [PATCH] Use authenticated GH API requests in "Compile Examples" CI workflow (#153) 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. --- .github/workflows/compile-examples.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 9a017a46..81469b33 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -43,6 +43,7 @@ jobs: - name: Compile examples uses: arduino/compile-sketches@main with: + github-token: ${{ secrets.GITHUB_TOKEN }} fqbn: ${{ matrix.board.fqbn }} libraries: | # Install the library from the local path.