Skip to content

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

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

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

hhvrc
Copy link
Member

@hhvrc hhvrc commented Jun 23, 2025

Potential fix for https://github.com/OpenShock/Common.Net/security/code-scanning/3

To fix the issue, add a permissions block at the root of the workflow file. This block will define the least privileges required for the workflow. Based on the provided steps, the workflow primarily reads repository contents and does not appear to require write access. Therefore, the permissions block should specify contents: read. If additional permissions are needed in the future, they can be added explicitly.


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>
@hhvrc hhvrc marked this pull request as ready for review June 23, 2025 11:55
@hhvrc hhvrc merged commit ff56a17 into master Jun 23, 2025
5 of 6 checks passed
@hhvrc hhvrc deleted the alert-autofix-3 branch June 23, 2025 11:55
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