Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Trusted Publishing for PyPI actions #1356

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Conversation

tlento
Copy link
Contributor

@tlento tlento commented Jul 27, 2024

In order to use Trusted Publishing we have to do some special things.

Most of these things have been abstracted away through the official
action plugin provided by the Python Packaging Authority.

This change simply conforms our actions configs with the requirements
for the plugin. Specifically, providing the id-token: write permission
and the target URL for publication in the relevant environment config.

In order to use Trusted Publishing we have to do some special things.

Most of these things have been abstracted away through the official
action plugin provided by the Python Packaging Authority.

This change simply conforms our actions configs with the requirements
for the plugin. Specifically, providing the `id-token: write` permission
and the target URL for publication in the relevant environment config.
@tlento tlento marked this pull request as ready for review July 27, 2024 01:33
@tlento
Copy link
Contributor Author

tlento commented Jul 27, 2024

Note - the deployment failed because I was publishing the same package. All of the authentication appeared to work, and we got a duplicate file detected response from pypi.

@tlento tlento merged commit 18f0bb8 into main Jul 30, 2024
15 checks passed
@tlento tlento deleted the enable-trusted-publishing branch July 30, 2024 01:01
tlento added a commit that referenced this pull request Jul 30, 2024
In order to use Trusted Publishing we have to do some special things.

Most of these things have been abstracted away through the official
action plugin provided by the Python Packaging Authority.

This change simply conforms our actions configs with the requirements
for the plugin. Specifically, providing the `id-token: write` permission
and the target URL for publication in the relevant environment config.
tlento added a commit that referenced this pull request Jul 30, 2024
#1362)

Backport of three PRs required to enable tag-based deployment from the 
`support/dbt-metricflow-0.7.x` branch. Specifically:

- **Enable tag-based deployment for dbt-metricflow (#1349)**
- **Remove access token reference for PyPI (#1350)**
- **Enable Trusted Publishing for PyPI actions (#1356)**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants