Skip to content

Commit 3e2874f

Browse files
fix: let codeql read its own workflow run on a private repository
1 parent b91afec commit 3e2874f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ jobs:
1010
permissions:
1111
contents: read
1212
security-events: write
13+
# the codeql action looks its own workflow run up through the api before
14+
# it does anything else, and on a private repository that call is
15+
# rejected without this — a 403 on get-a-workflow-run, several steps
16+
# before any analysis, unrelated to the sarif upload the job already
17+
# skips there (github/codeql-action#2117).
18+
actions: read
1319
strategy:
1420
fail-fast: false
1521
matrix:

0 commit comments

Comments
 (0)