Skip to content

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

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
May 16, 2025

Conversation

kzscisoft
Copy link
Contributor

Potential fix for https://github.com/simvue-io/simvue-cli/security/code-scanning/1

To fix the issue, we will add a permissions block to the build job. Since the job only needs to read the repository contents (e.g., to check out code and build the module), we will set contents: read as the minimal required permission. This change ensures that the job does not have unnecessary write permissions.


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>
@kzscisoft kzscisoft marked this pull request as ready for review May 16, 2025 07:36
@kzscisoft kzscisoft merged commit eaad773 into dev May 16, 2025
2 of 5 checks passed
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