Skip to content

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

Open
eriknordmark wants to merge 1 commit into
mainfrom
alert-autofix-1
Open

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#88
eriknordmark wants to merge 1 commit into
mainfrom
alert-autofix-1

Conversation

@eriknordmark

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/lf-edge/eve-libs/security/code-scanning/1

Add an explicit permissions block at the workflow root (best here since there is one job and it documents default permissions clearly for future jobs too).
Start with least privilege needed by CodeQL recommendation: contents: read. This preserves behavior for checkout/read operations while ensuring token scope cannot silently expand from repository defaults.

File/region to change:

  • .github/workflows/yetus.yml
  • Insert permissions: immediately after the on: trigger block and before jobs:.

No imports, methods, or dependencies 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: eriknordmark <erik@zededa.com>
@eriknordmark
eriknordmark marked this pull request as ready for review August 17, 2026 20:43
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