Skip to content

Conversation

@GeekMasher
Copy link
Contributor

Potential fix for https://github.com/GeekMasher/codeql-scanner-vscode/security/code-scanning/1

To fix the issue, add a permissions block to the workflow file. This block should specify the least privileges required for the workflow to function correctly. In this case, the workflow only needs read access to the repository contents, so the permissions block should be set to contents: read. This block can be added at the root level of the workflow to apply to all jobs or within the build job to limit permissions specifically for that job.

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>
@GeekMasher GeekMasher marked this pull request as ready for review June 27, 2025 14:58
@GeekMasher GeekMasher merged commit 5b294e0 into main Jun 27, 2025
4 checks passed
@GeekMasher GeekMasher deleted the alert-autofix-1 branch June 27, 2025 14:59
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.

2 participants