Skip to content

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

Closed
nickk02 wants to merge 1 commit into
mainfrom
alert-autofix-1
Closed

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

Conversation

@nickk02

@nickk02 nickk02 commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/nicolassanchez02/war-of-kings/security/code-scanning/1

Add an explicit top-level permissions block in .github/workflows/ci.yml so all jobs inherit least-privilege token scopes.
Best fix here: add:

  • contents: read (required for checkout and repository reads)

No write scopes are needed based on the shown jobs (restore/build/test/determinism checks).
Place the block at workflow root (after on: section and before jobs:) so it applies uniformly to sim-purity, test, and determinism-check without changing behavior.

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: Nicolas Sanchez <98576999+nicolassanchez02@users.noreply.github.com>
@nickk02 nickk02 closed this May 28, 2026
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