Skip to content

Conversation

@BattlefieldDuck
Copy link
Member

Potential fix for https://github.com/opengsq/opengsq-python/security/code-scanning/1

To fix the problem, you should add a permissions key to the workflow file specifying the least privileges required. Since the workflow as shown only checks out code and installs dependencies (not uploading artifacts, releasing, or interacting with issues or pull requests), it only requires basic read access to repository contents. The best way to fix this is by adding permissions: contents: read at the top level, directly following the name: line and before the on: block. This will apply the least privilege policy to all jobs unless overridden in a specific 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>
@BattlefieldDuck BattlefieldDuck marked this pull request as ready for review December 18, 2025 11:43
@BattlefieldDuck BattlefieldDuck merged commit 7ac83ed into main Dec 18, 2025
8 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.

2 participants