Skip to content

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

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

FerralCoder merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@FerralCoder

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/OpenPRoT/aspeed-rust/security/code-scanning/1

Add an explicit top-level permissions block in .github/workflows/build-test.yml so all jobs in this workflow get least-privilege token scopes by default.

Best fix here (without changing functionality): define workflow-level permissions immediately after the trigger section (on: …) and before jobs::

  • contents: read (needed for checkout/read access)

This is the minimal recommended baseline from CodeQL and should preserve current behavior while constraining token access.

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 22:49
@FerralCoder
FerralCoder merged commit 509950e into main Nov 30, 2026
7 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