Skip to content

Potential fix for code scanning alert no. 3: Workflow does not contain permissions - #879

Merged
FerralCoder merged 1 commit into
mainfrom
alert-autofix-3
Nov 30, 2026
Merged

FerralCoder merged 1 commit into
mainfrom
alert-autofix-3

Conversation

@FerralCoder

Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/OpenPRoT/openprot/security/code-scanning/3

Add an explicit permissions block to the workflow so GITHUB_TOKEN is constrained by default.
Best fix without changing functionality: set workflow-level permissions to contents: read (the CodeQL-recommended minimal baseline), since no step in this workflow appears to require broader GITHUB_TOKEN access. The PR creation already uses a separate GitHub App token, so this should not break behavior.

File to change: .github/workflows/roll-pigweed.yml
Change location: near the top-level keys, after on: section and before jobs:.
No imports/dependencies/methods are needed (YAML config-only change).

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Lou Ferraro <112569056+FerralCoder@users.noreply.github.com>
@FerralCoder
FerralCoder marked this pull request as ready for review November 30, 2026 23:50
@FerralCoder
FerralCoder merged commit 25743e9 into main Nov 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants