From 669b8abf908102ed6b6b591a58958f01f672e7bf Mon Sep 17 00:00:00 2001 From: Bhupender Date: Mon, 4 Dec 2023 12:17:03 +0530 Subject: [PATCH] Escape in curl request. Signed-off-by: Bhupender --- .github/workflows/tagPublish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tagPublish.yml b/.github/workflows/tagPublish.yml index b8ecd28..5bf9dc3 100644 --- a/.github/workflows/tagPublish.yml +++ b/.github/workflows/tagPublish.yml @@ -72,7 +72,8 @@ jobs: id: mint-token run: | # retrieve the ambient OIDC token - resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi") + resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \ + "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi") 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}}")