File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 13
13
publish-pypi :
14
14
runs-on : ubuntu-latest
15
15
name : PyPI Release
16
+ environment : release
16
17
permissions :
17
18
id-token : write # for PyPI trusted publishing
18
19
steps :
@@ -38,10 +39,10 @@ jobs:
38
39
with :
39
40
script : |
40
41
// retrieve the ambient OIDC token
41
- const oidc_token = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
42
- const oidc_url = process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
43
- const resp = await fetch(`${oidc_url }&audience=testpypi`, {
44
- headers: {Authorization: `bearer ${oidc_token }`},
42
+ const oidc_request_token = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
43
+ const oidc_request_url = process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
44
+ const resp = await fetch(`${oidc_request_url }&audience=testpypi`, {
45
+ headers: {Authorization: `bearer ${oidc_request_token }`},
45
46
}
46
47
);
47
48
const oidc_token = (await response.json()).value;
You can’t perform that action at this time.
0 commit comments