Skip to content

Potential fix for code scanning alert no. 28: Workflow does not contain permissions - #20

Merged
htomasz merged 1 commit into
mainfrom
alert-autofix-28
Jun 21, 2026
Merged

Potential fix for code scanning alert no. 28: Workflow does not contain permissions#20
htomasz merged 1 commit into
mainfrom
alert-autofix-28

Conversation

@htomasz

@htomasz htomasz commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/htomasz/vultron/security/code-scanning/28

Add an explicit workflow-level permissions block in .github/workflows/python-security.yml so all jobs inherit least privilege by default.
For this workflow, the minimal non-breaking permission is:

  • contents: read

Place it near the top level (after on: is a common location), before jobs:. This keeps functionality unchanged while satisfying CodeQL and documenting intended token scope.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

@htomasz htomasz left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apporoved

@htomasz
htomasz marked this pull request as ready for review June 21, 2026 16:57
@htomasz
htomasz merged commit bfe8ee0 into main Jun 21, 2026
15 checks passed
@htomasz
htomasz deleted the alert-autofix-28 branch June 28, 2026 10:18
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