From b265e9954c16b321461db69f2cf16b061b2d5ec9 Mon Sep 17 00:00:00 2001 From: Arpit Jain Date: Thu, 14 May 2026 10:45:06 +0900 Subject: [PATCH] ci: declare contents:read on Lint workflow The pre-commit-checks job runs pre-commit hooks inside a miniconda env and a final `git diff`. No GitHub API write beyond actions/checkout. contents:read is the floor. Style matches the per-job permissions blocks already declared by the build-* / unittest-* / docs-* workflows in this repo (typically id-token: write + contents: read at the job level). Signed-off-by: Arpit Jain --- .github/workflows/lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bbf44aeaea..90367f4982 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,6 +13,9 @@ defaults: run: shell: bash -l -eo pipefail {0} +permissions: + contents: read + jobs: pre-commit-checks: runs-on: ubuntu-latest