From 0fd713b1a7d6d42afe4a4d63ed3a4e1b0ec2fde4 Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Wed, 18 Nov 2026 17:10:57 -0800 Subject: [PATCH 1/2] setup-integration-tests: Document GITHUB_TOKEN usage --- .github/actions/setup-integration-tests/action.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/setup-integration-tests/action.yaml b/.github/actions/setup-integration-tests/action.yaml index b1047ed5..ec4c9b5f 100644 --- a/.github/actions/setup-integration-tests/action.yaml +++ b/.github/actions/setup-integration-tests/action.yaml @@ -13,6 +13,9 @@ description: >- at the job level (or the equivalent "shell:" key at the step level) to activate the integration Conda environment by default. + Jobs which use this action should provide to GITHUB_TOKEN the `contents: read` + permission for higher GitHub API rate limits. + inputs: python-version: description: Version of Python to use for conda-incubator/setup-miniconda. From ddac06a99e4de20baa59a034f2c01c54f5663f45 Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Tue, 17 Nov 2026 16:58:43 -0800 Subject: [PATCH 2/2] Set explicit permissions for GITHUB_TOKEN Self-documenting and safe. --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5a8edb3e..43fa0313 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -258,6 +258,8 @@ jobs: - '3.13' - '3.14' runs-on: ${{ matrix.os }} + permissions: + contents: read # for setup-integration-tests defaults: run: # Add -l for setup-integration-tests → setup-miniconda → automatic @@ -317,6 +319,8 @@ jobs: - { os: windows-2025, target: x86_64-pc-windows-msvc } runs-on: ${{matrix.os}} + permissions: + contents: read # for setup-integration-tests defaults: run: # Add -l for setup-integration-tests → setup-miniconda → automatic @@ -360,6 +364,8 @@ jobs: - test-standalone - lint runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v7