We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b5c03e commit 95d3b97Copy full SHA for 95d3b97
1 file changed
.github/workflows/sdk_publish.yaml
@@ -22,12 +22,12 @@ jobs:
22
id: mint-token
23
run: |
24
# retrieve the ambient OIDC token
25
- resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
+ resp=$(curl -sS --fail -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
26
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi")
27
oidc_token=$(jq -r '.value' <<< "${resp}")
28
29
# exchange the OIDC token for an API token
30
- resp=$(curl -X POST https://pypi.org/_/oidc/mint-token -d "{\"token\": \"${oidc_token}\"}")
+ resp=$(curl -sS --fail -X POST https://pypi.org/_/oidc/mint-token -d "{\"token\": \"${oidc_token}\"}")
31
api_token=$(jq -r '.token' <<< "${resp}")
32
33
# see the next step in the workflow for an example of using this step output
0 commit comments