Skip to content

Commit

Permalink
Add GitHub Actions environment; fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jul 24, 2023
1 parent c161e9c commit a539ce7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/create-release.yml
Expand Up @@ -13,6 +13,7 @@ jobs:
publish-pypi:
runs-on: ubuntu-latest
name: PyPI Release
environment: release
permissions:
id-token: write # for PyPI trusted publishing
steps:
Expand All @@ -38,10 +39,10 @@ jobs:
with:
script: |
// retrieve the ambient OIDC token
const oidc_token = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
const oidc_url = process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
const resp = await fetch(`${oidc_url}&audience=testpypi`, {
headers: {Authorization: `bearer ${oidc_token}`},
const oidc_request_token = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
const oidc_request_url = process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
const resp = await fetch(`${oidc_request_url}&audience=testpypi`, {
headers: {Authorization: `bearer ${oidc_request_token}`},
}
);
const oidc_token = (await response.json()).value;
Expand Down

0 comments on commit a539ce7

Please sign in to comment.