Skip to content

ci: restrict GITHUB_TOKEN permissions in chkit-py publish workflow - #205

Merged
Lucasgvdii merged 1 commit into
mainfrom
fix/publish-workflow-permissions
Aug 10, 2026
Merged

ci: restrict GITHUB_TOKEN permissions in chkit-py publish workflow#205
Lucasgvdii merged 1 commit into
mainfrom
fix/publish-workflow-permissions

Conversation

@Lucasgvdii

Copy link
Copy Markdown
Contributor

Summary

  • Adds a workflow-level permissions: contents: read to publish-chkit-py.yml, resolving the CodeQL / Advanced Security finding ("Workflow does not contain permissions"). The publish job keeps its explicit id-token: write block for PyPI trusted publishing.

Test plan

  • Workflow-only change; the build job needs nothing beyond checkout (contents: read)

…rkflow

Addresses the CodeQL 'workflow does not contain permissions' finding:
without an explicit block, jobs inherit the repo-default token scope.
The publish job keeps its own id-token:write block for OIDC.
@Lucasgvdii
Lucasgvdii merged commit 0b72925 into main Aug 10, 2026
7 checks passed
@Lucasgvdii
Lucasgvdii deleted the fix/publish-workflow-permissions branch August 10, 2026 22:27
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