From bab140f0bad152bdf58f7c746cf4a2df9e73043a Mon Sep 17 00:00:00 2001 From: bryan Date: Mon, 13 Jul 2026 14:51:13 -0700 Subject: [PATCH] ci: add least-privilege permissions to test workflow Prep for the org default GITHUB_TOKEN flip to read-only: add an explicit top-level `permissions:` block so the flip is a no-op for this workflow. The workflow only checks out the repo and tests the local action (uses: ./) and performs no writes with the token, so `contents: read` is the safe least-privilege grant. Co-authored-by: Claude Opus 4.8 (1M context) --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a79ab7..c5494fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,9 @@ on: branches: [main] pull_request: +permissions: + contents: read + jobs: hello-world: name: hello-world (${{ matrix.runner }})