From 1d45543b0e6d6b27afa3a521bbaa0cfb46fcf7a2 Mon Sep 17 00:00:00 2001 From: Arpit Jain Date: Tue, 2 Jun 2026 10:01:15 +0900 Subject: [PATCH] ci: scope ci workflow token to contents: read Set an explicit least-privilege permissions block so the workflow GITHUB_TOKEN is scoped to contents: read instead of inheriting the repository default. Signed-off-by: Arpit Jain --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e0f1ee..4ad4035 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,9 @@ name: CI on: [push, pull_request] +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest