From 70717090459138918d10b1d13c5feb54c468c125 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Thu, 11 Feb 2021 10:36:32 +0100 Subject: [PATCH] Use authenticated GH API requests in "Compile Examples" CI workflow 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 8ee6c1ac9..559a184ac 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -196,6 +196,7 @@ jobs: - name: Compile examples uses: arduino/compile-sketches@main with: + github-token: ${{ secrets.GITHUB_TOKEN }} platforms: ${{ matrix.platforms }} fqbn: ${{ matrix.board.fqbn }} libraries: |