Skip to content

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

Merged
CornFlakesPC merged 1 commit into
masterfrom
alert-autofix-5
Jul 21, 2026
Merged

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#103
CornFlakesPC merged 1 commit into
masterfrom
alert-autofix-5

Conversation

@CornFlakesPC

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/CornFlakesPC/ASRockWiki/security/code-scanning/5

Add an explicit top-level permissions block in .github/workflows/ci.yml so all jobs inherit least-privilege token access by default.

Best fix here (without changing functionality): add

permissions:
  contents: read

at the workflow root (for example, right after name: CI and before jobs:). This is sufficient for actions/checkout and typical read-only CI tasks shown. No imports, methods, or dependencies are needed since this is YAML workflow configuration only.

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>
@CornFlakesPC
CornFlakesPC marked this pull request as ready for review July 21, 2026 21:20
@CornFlakesPC
CornFlakesPC merged commit 7e582a0 into master Jul 21, 2026
5 checks passed
@CornFlakesPC
CornFlakesPC deleted the alert-autofix-5 branch July 21, 2026 21:28
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.

1 participant