Skip to content

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

Merged
rapatao merged 1 commit into
mainfrom
alert-autofix-2
May 31, 2026
Merged

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

Conversation

@rapatao

@rapatao rapatao commented May 31, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/rapatao/ruleset-engine/security/code-scanning/2

Add an explicit permissions block to .github/workflows/tests.yaml at the workflow root so it applies to all jobs (currently just tests).
The least-privilege fix that preserves behavior is:

  • contents: read

This is sufficient for actions/checkout@v4 and running tests. No additional imports, methods, or dependencies 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>
@rapatao rapatao marked this pull request as ready for review May 31, 2026 10:19
@rapatao rapatao merged commit fb0f54c into main May 31, 2026
4 checks passed
@rapatao rapatao deleted the alert-autofix-2 branch May 31, 2026 10:19
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