Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Security Scan
permissions:
contents: read
Comment on lines 1 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Grant CodeQL required security-events permissions

Adding permissions: contents: read restricts the workflow token to contents only. The codeql job calls github/codeql-action/.github/workflows/codeql.yml@v3, which requires security-events: write (and typically actions: read, contents: read) to upload SARIF results. With the new top-level block, security-events remains unset (defaults to none), so CodeQL can no longer publish results and the workflow will fail or silently drop findings. Explicitly declare the full set of permissions the CodeQL reusable workflow expects rather than only contents: read.

Useful? React with 👍 / 👎.


on:
push:
Expand Down
Loading