Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leonkenneth
Copy link
Contributor

Potential fix for https://github.com/fab-geocommuns/RNB-coeur/security/code-scanning/9

To fix the issue, we will add a permissions block at the root of the workflow file. This block will specify the least privileges required for the workflow to function. Based on the provided steps, the workflow primarily interacts with the repository contents (e.g., checking out code) and does not appear to require write access. Therefore, we will set contents: read as the permission. If additional permissions are required in the future, they can be added explicitly.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

leonkenneth and others added 2 commits June 25, 2025 15:19
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@leonkenneth leonkenneth marked this pull request as ready for review June 25, 2025 13:21
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