Skip to content

Restrict OIDC token to publish job#210

Merged
miketheman merged 2 commits into
pypi:mainfrom
trail-of-forks:ft/release-oidc-publish-job
Jun 1, 2026
Merged

Restrict OIDC token to publish job#210
miketheman merged 2 commits into
pypi:mainfrom
trail-of-forks:ft/release-oidc-publish-job

Conversation

@facutuesca
Copy link
Copy Markdown
Contributor

The GH OIDC token used for Trusted Publishing should not be available to non-publishing steps. This PR removes it from the steps that install the dependencies and build the project, so that it's only available during PyPI publishing.

Also removes attestations: true (since true is already the default) and contents: write (since it's not being used)

cc @miketheman

attestations already defaults to true, and the publish job does not need
contents: write.
@miketheman miketheman added the github_actions Pull requests that update GitHub Actions code label Jun 1, 2026
@miketheman miketheman merged commit 90177dd into pypi:main Jun 1, 2026
9 checks passed
@facutuesca facutuesca deleted the ft/release-oidc-publish-job branch June 1, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants