From 52382427efaa1326b31fc42b528130a139c8cd7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Wed, 25 Mar 2026 10:52:03 +0100 Subject: [PATCH] Fix gitleaks permissions for dependabot PRs Gitleaks needs explicit contents:read and pull-requests:read permissions to scan dependabot PR commits. Without them, the GitHub API returns 403. Ref: https://github.com/gitleaks/gitleaks/issues/1343#issuecomment-2690243151 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11a0e71..2674cd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,9 @@ jobs: security: name: Security Scan runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read steps: - uses: actions/checkout@v6 with: