Skip to content

Restrict OIDC token to publish job#236

Open
facutuesca wants to merge 1 commit into
pypa:mainfrom
trail-of-forks:ft/release-oidc-publish-job
Open

Restrict OIDC token to publish job#236
facutuesca wants to merge 1 commit into
pypa:mainfrom
trail-of-forks:ft/release-oidc-publish-job

Conversation

@facutuesca
Copy link
Copy Markdown

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.

cc @miketheman

@facutuesca
Copy link
Copy Markdown
Author

I noticed that the actions are not pinned. For this repo, which is meant to serve as an example/template, should I remove the pinned hashes of this PR? Or should we change the repo to pin all actions?

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