Skip to content

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

Merged
FelixTheC merged 1 commit into
mainfrom
alert-autofix-3
Aug 1, 2026
Merged

Potential fix for code scanning alert no. 3: Workflow does not contain permissions#50
FelixTheC merged 1 commit into
mainfrom
alert-autofix-3

Conversation

@FelixTheC

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/FelixTheC/py-overload/security/code-scanning/3

Add an explicit permissions block at the workflow root so all jobs get least-privilege defaults unless they override them.
Best single fix here: insert:

permissions:
  contents: read

right after the on: trigger section and before jobs:. This fixes the flagged setup job without changing behavior. The existing deploy job-level permissions remain in effect (job-level overrides root-level), so id-token: write for PyPI publish continues to work.

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>
@FelixTheC
FelixTheC marked this pull request as ready for review June 26, 2026 12:41
@FelixTheC
FelixTheC merged commit e6a1fec into main Aug 1, 2026
6 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.

1 participant