You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace job_workflow_ref with workflow_ref (#57)
TL;DR: `job_workflow_ref` and `workflow_ref` are
*often* the same thing and have the same value,
but sometimes diverge in ways that make later
support for GitHub's reusable workflows difficult.
This guide should recommend `workflow_ref` instead of
`job_workflow_ref` for the "baseline" of Trusted
Publishing, since it's always correct as the
"initiating" workflow identity.
See pypi/warehouse#11096
and rust-lang/crates.io#11131 (comment)
for more context.
Signed-off-by: William Woodruff <[email protected]>
Copy file name to clipboardExpand all lines: docs/trusted-publishers-for-all-package-repositories.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ For some Trusted Publishing providers, Trusted Publishers allow binding verifiab
20
20
21
21
Trusted Publishers are ideal for package repositories that accept user-built packages, like PyPI and RubyGems, as opposed to package repositories that have centralized build infrastructure like Homebrew.
22
22
23
-
Trusted Publishers pairs well with other technologies such as SLSA build provenance, as it is built on the same underlying technology, the OIDC standard.
23
+
Trusted Publishers pairs well with other technologies such as SLSA build provenance, as it is built on the same underlying technology, the OIDC standard.
24
24
25
25
Package repositories which don’t host separate artifacts (such as pkg.go.dev) don’t require authenticating with the repository, thus Trusted Publishers isn’t applicable.
26
26
@@ -46,7 +46,7 @@ A high-level overview of how PyPI verifies the OIDC ID token against a pre-confi
46
46
*`repository` is `example-repo`
47
47
*`repository_owner` is `example-owner`
48
48
*`repository_owner_id` is `12345`
49
-
*`job_workflow_ref` is `example-owner/example-repo/.github/workflows/publish.yml@abcdef`
49
+
*`workflow_ref` is `example-owner/example-repo/.github/workflows/publish.yml@abcdef`
50
50
51
51
Once this is complete, the package repository can authorize publications by delegating to a repository-managed token.
52
52
@@ -123,4 +123,4 @@ As of April 2024, the [Python Package Index](https://blog.pypi.org/posts/2023-04
0 commit comments