Skip to content

fix: add explicit permissions to workflow jobs#40

Merged
alubbock merged 1 commit intomainfrom
fix/workflow-permissions
Mar 12, 2026
Merged

fix: add explicit permissions to workflow jobs#40
alubbock merged 1 commit intomainfrom
fix/workflow-permissions

Conversation

@alubbock
Copy link
Copy Markdown
Owner

@alubbock alubbock commented Mar 12, 2026

Summary

Fixes CodeQL alerts #1 and #2 ("Workflow does not contain permissions").

  • Adds permissions: read-all at the workflow level to lock down the default token permissions for all jobs
  • Adds explicit permissions: contents: read to both the build and release jobs — the minimum needed to check out the repository
  • The release job publishes to PyPI via secrets.PYPI_API_TOKEN (token-based), so no additional permissions are required

Test plan

  • Confirm CodeQL alerts 1 and 2 are resolved after merge

@alubbock alubbock merged commit cf748fe into main Mar 12, 2026
19 checks passed
@alubbock alubbock deleted the fix/workflow-permissions branch March 12, 2026 23:00
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