Skip to content

Commit 2d78331

Browse files
committed
Add top-level permissions to CodeQL workflow
FIX: Missing workflow-level permissions causing PR write failures - Added top-level permissions section to codeql.yml workflow - Ensures pull-requests: write is available at workflow level - Maintains existing job-level permissions for compatibility PERMISSIONS ADDED: - actions: read - contents: read - security-events: write - pull-requests: write This resolves the 'Unable to write summary to pull-request' warning by ensuring permissions are available at both workflow and job levels.
1 parent 8ecfb3e commit 2d78331

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
schedule:
99
- cron: '30 2 * * 1'
1010

11+
permissions:
12+
actions: read
13+
contents: read
14+
security-events: write
15+
pull-requests: write
16+
1117
jobs:
1218
analyze:
1319
name: Analyze

0 commit comments

Comments
 (0)