From 1c27c8ee215418499e362b2642546642f2098dbb Mon Sep 17 00:00:00 2001 From: Arpit Jain Date: Tue, 2 Jun 2026 10:01:38 +0900 Subject: [PATCH] ci: restrict ci workflow permissions to read-only 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 0e654f1..ca08cb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,9 @@ on: paths-ignore: - 'action-surefire-report/**' +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest