Skip to content

Conversation

@rocktavious
Copy link
Collaborator

Potential fix for https://github.com/OpsLevel/opslevel-go/security/code-scanning/6

To fix the problem, we should add a permissions block to the workflow file, specifying the least privilege required for the jobs. Since both jobs only need to read repository contents (for checkout and Snyk analysis) and do not need to write to the repository, the minimal permissions should be set to contents: read. This can be added at the workflow level (top-level, after the name and before jobs), which will apply to all jobs unless overridden. No additional imports or definitions are needed; this is a YAML configuration change.

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>
@rocktavious rocktavious marked this pull request as ready for review August 5, 2025 17:04
@rocktavious rocktavious merged commit bda2962 into main Aug 5, 2025
4 checks passed
@rocktavious rocktavious deleted the alert-autofix-6 branch August 5, 2025 17:09
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