From 84b18938c7e21941fa03c48358ca9531b4629e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Kl=C3=A4rner?= Date: Mon, 13 Jan 2025 22:04:11 +0100 Subject: [PATCH] fix: help the CI avoid ratelimits by authenticating ourselves --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0aec60..105de61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [master, beta] +permissions: + contents: read + jobs: build_and_lint: runs-on: ${{ matrix.os }} @@ -13,6 +16,9 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] + env: + # octokit tries to use GITHUB_TOKEN opportunistically, so providing the token should increase our rate limits + GITHUB_TOKEN: ${{ github.token }} steps: - uses: actions/checkout@v4