@@ -62,36 +62,41 @@ The secret used in `${{ secrets.PYPI_API_TOKEN }}` needs to be created on the
62
62
settings page of your project on GitHub. See [Creating & using secrets].
63
63
64
64
65
- # ## Publishing with OpenID Connect
65
+ # ## Trusted publishing
66
66
67
67
> **IMPORTANT**: This functionality is in beta, and will not work for you
68
- > unless you're a member of the PyPI OIDC beta testers' group. For more
69
- > information, see [warehouse#12965].
68
+ > unless you're a member of the PyPI trusted publishing beta testers' group.
69
+ > For more information, see [warehouse#12965].
70
70
71
- This action supports PyPI's [OpenID Connect publishing]
71
+ > **NOTE**: Trusted publishing is sometimes referred to by its
72
+ > underlying technology -- OpenID Connect, or OIDC for short.
73
+ > If you see references to "OIDC publishing" in the context of PyPI,
74
+ > this is what they're referring to.
75
+
76
+ This action supports PyPI's [trusted publishing]
72
77
implementation, which allows authentication to PyPI without a manually
73
78
configured API token or username/password combination. To perform
74
- [OIDC publishing][OpenID Connect Publishing ] with this action, your project's
75
- OIDC publisher must already be configured on PyPI.
79
+ [trusted publishing] with this action, your project's
80
+ publisher must already be configured on PyPI.
76
81
77
- To enter the OIDC flow, configure this action's job with the `id-token : write`
78
- permission and **without** an explicit username or password :
82
+ To enter the trusted publishing flow, configure this action's job with the
83
+ `id-token : write` permission and **without** an explicit username or password:
79
84
80
85
` ` ` yaml
81
86
jobs:
82
87
pypi-publish:
83
88
name: Upload release to PyPI
84
89
runs-on: ubuntu-latest
85
90
permissions:
86
- id-token: write # IMPORTANT: this permission is mandatory for OIDC publishing
91
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
87
92
steps:
88
93
# retrieve your distributions here
89
94
90
95
- name: Publish package distributions to PyPI
91
96
uses: pypa/gh-action-pypi-publish@release/v1
92
97
` ` `
93
98
94
- Other indices that support OIDC publishing can also be used, like TestPyPI :
99
+ Other indices that support trusted publishing can also be used, like TestPyPI :
95
100
96
101
` ` ` yaml
97
102
- name: Publish package distributions to TestPyPI
@@ -268,4 +273,4 @@ https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direc
268
273
https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md
269
274
270
275
[warehouse#12965]: https://github.com/pypi/warehouse/issues/12965
271
- [OpenID Connect Publishing ] : https://pypi.org/help/#openid-connect
276
+ [trusted publishing ] : https://docs. pypi.org/trusted-publishers/
0 commit comments