Skip to content

Conversation

capjamesg
Copy link
Owner

Potential fix for https://github.com/capjamesg/aurora/security/code-scanning/7

To fix the issue, we should add a permissions block with minimal required privileges. Since the workflow only needs to check out code from the repository (with actions/checkout), the minimal required permission is 'contents: read'. This can be set either at the workflow root or at the job level. It's common to place it at the top level to ensure all jobs inherit it unless otherwise specified. The addition should be right after the workflow name: line and before the on: block, or just after. No new imports, methods, or other code changes are required—just YAML configuration.


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