Skip to content

Commit 3483552

Browse files
fix: grant gitleaks pull-requests: read
gitleaks-action reads a pull request's commits through the API (GET .../pulls/{n}/commits), which needs pull-requests: read — the job only had contents: read, so every PR run hit a 403. Claude-Session: https://claude.ai/code/session_01J4HB8qJjdZwaAv42k6HMpv
1 parent a9af647 commit 3483552

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/app-security.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
runs-on: ubuntu-latest
5555
permissions:
5656
contents: read
57+
# gitleaks-action reads the pull request's commits through the API
58+
# (GET .../pulls/{n}/commits) instead of the diff already on disk.
59+
pull-requests: read
5760
steps:
5861
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5962
with:

0 commit comments

Comments
 (0)