X Tutup
Skip to content

Commit 07a5b7c

Browse files
authored
Merge pull request #11 from nejch/oidc-release
fix(ci): strip quotes from minted token
2 parents d916d87 + 0432dab commit 07a5b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: mint-token
2222
run: |
2323
oidc_token=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=testpypi" | jq '.value')
24-
api_token=$(curl -X POST https://test.pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}" | jq '.token')
24+
api_token=$(curl -X POST https://test.pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}" | jq '.token' | tr -d '"')
2525
echo "::add-mask::${api_token}"
2626
echo "api-token=${api_token}" >> "${GITHUB_OUTPUT}"
2727
- name: Python Semantic Release

0 commit comments

Comments
 (0)
X Tutup