Skip to content

Conversation

@GeekMasher
Copy link
Contributor

Potential fix for https://github.com/GitHubSecurityLab/codeql-extractor-bicep/security/code-scanning/3

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. Based on the provided workflow, it appears that the workflow primarily reads repository contents and uses the GITHUB_TOKEN for authentication. Therefore, the permissions can be limited to contents: read.

The permissions block should be added at the root level of the workflow file to apply to all jobs in the workflow. This ensures that all jobs inherit the same minimal permissions unless explicitly overridden.

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 July 7, 2025 11:34
@GeekMasher GeekMasher enabled auto-merge (rebase) July 7, 2025 11:34
@GeekMasher GeekMasher merged commit 760ae19 into main Jul 7, 2025
6 checks passed
@GeekMasher GeekMasher deleted the alert-autofix-3 branch July 7, 2025 11:37
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