Skip to content

Commit

Permalink
docs/user: update OIDC minting endpoint (pypi#15180)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw authored Jan 10, 2024
1 parent ee973b3 commit a280218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user/trusted-publishers/using-a-publisher.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ below describe the setup process for each supported trusted publisher.
back:

```bash
resp=$(curl -X POST https://pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}")
resp=$(curl -X POST https://pypi.org/_/oidc/mint-token -d "{\"token\": \"${oidc_token}\"}")
api_token=$(jq '.token' <<< "${resp}")

# tell GitHub Actions to mask the token in any console logs,
Expand Down Expand Up @@ -194,7 +194,7 @@ below describe the setup process for each supported trusted publisher.
oidc_token=$(jq '.value' <<< "${resp}")

# exchange the OIDC token for an API token
resp=$(curl -X POST https://pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}")
resp=$(curl -X POST https://pypi.org/_/oidc/mint-token -d "{\"token\": \"${oidc_token}\"}")
api_token=$(jq '.token' <<< "${resp}")

# mask the newly minted API token, so that we don't accidentally leak it
Expand Down

0 comments on commit a280218

Please sign in to comment.