From a28021841eae1436203e47c4cdc801210be84097 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 10 Jan 2024 15:23:17 -0500 Subject: [PATCH] docs/user: update OIDC minting endpoint (#15180) --- docs/user/trusted-publishers/using-a-publisher.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/trusted-publishers/using-a-publisher.md b/docs/user/trusted-publishers/using-a-publisher.md index 763df16635c4..c97442dd6106 100644 --- a/docs/user/trusted-publishers/using-a-publisher.md +++ b/docs/user/trusted-publishers/using-a-publisher.md @@ -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, @@ -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