Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe committed Jun 26, 2024
1 parent 1cb0a2c commit 98bbe65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
id-token: write
needs: wheel-build
steps:
- name: mint API token
run: ci/mint-pypi-token.sh
- name: Mint GitHub Token
uses: rapidsai/shared-actions/mint-pypi-token@mint-pypi-token
id: mint-token
Expand Down
3 changes: 3 additions & 0 deletions ci/mint-pypi-token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi")
oidc_token=$(jq -r '.value' <<< "${resp}")

echo "OIDC token: $oidc_token"
echo "Response: $resp"

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

0 comments on commit 98bbe65

Please sign in to comment.