From 5b628638817e310b19a1342ee3e33d740c157464 Mon Sep 17 00:00:00 2001 From: Arpit Jain Date: Mon, 25 May 2026 12:15:26 +0900 Subject: [PATCH] ci: cap GITHUB_TOKEN to contents: read CI workflow runs tests; no GitHub API writes from the workflow. contents: read at workflow level is appropriate. Post-CVE-2025-30066 hardening shape. yaml.safe_load validated. Signed-off-by: Arpit Jain --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3949df87..b983d305 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,9 @@ on: - main pull_request: +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest