From e16711654d7a00858ab1dd833263366573b9303d Mon Sep 17 00:00:00 2001 From: Arpit Jain Date: Sun, 31 May 2026 10:18:14 +0900 Subject: [PATCH] ci: declare workflow-level contents: read on 1 workflow Declares an explicit workflow-level permissions: contents: read on 1 workflow that currently inherit the default broad read-write GITHUB_TOKEN. Each file was inspected and only reads the checkout; none publish, push, or write via the GitHub API. Post-CVE-2025-30066 hardening default. Signed-off-by: Arpit Jain --- .github/workflows/labeler-cache-retention.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/labeler-cache-retention.yml b/.github/workflows/labeler-cache-retention.yml index 7f78390c0cf..e6a8aade0ba 100644 --- a/.github/workflows/labeler-cache-retention.yml +++ b/.github/workflows/labeler-cache-retention.yml @@ -20,6 +20,10 @@ on: required: true default: "ACTIVE" + +permissions: + contents: read + env: CACHE_KEY: ${{ inputs.cache_key || 'ACTIVE' }}