Skip to content

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

Merged
nickk02 merged 1 commit into
mainfrom
alert-autofix-3
May 28, 2026
Merged

Potential fix for code scanning alert no. 3: Workflow does not contain permissions#3
nickk02 merged 1 commit into
mainfrom
alert-autofix-3

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/3

Add an explicit permissions block in .github/workflows/ci.yml at the workflow root level (near on: / before jobs:), so it applies to all jobs (sim-purity, test, and determinism-check) unless overridden.
For this workflow, the minimal least-privilege setting is:

  • contents: read

This is sufficient for actions/checkout@v4 and build/test steps that only read source code and do not write PR comments, create releases, upload packages, or modify issues. No imports, methods, or additional definitions are needed since this is YAML 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>
Signed-off-by: Nicolas Sanchez <98576999+nicolassanchez02@users.noreply.github.com>
@nickk02 nickk02 closed this May 28, 2026
@nickk02 nickk02 reopened this May 28, 2026
@nickk02 nickk02 marked this pull request as ready for review May 28, 2026 00:06
@nickk02 nickk02 merged commit bd60857 into main May 28, 2026
9 of 11 checks passed
@nickk02 nickk02 deleted the alert-autofix-3 branch May 28, 2026 00:07
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