Skip to content

Commit

Permalink
fix: update token fetching command to extract token value using jq
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Nov 16, 2024
1 parent ae4f361 commit 2d893a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/fetch-token/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
id: token
shell: bash
run: |
echo "token=$(curl -sLS --fail "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=github-bot.fos.gg" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN")" >> $GITHUB_OUTPUT
echo "token=$(curl -sLS --fail "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=github-bot.fos.gg" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" | jq -r .value)" >> $GITHUB_OUTPUT
- name: Get scoped token
shell: bash
Expand Down

0 comments on commit 2d893a1

Please sign in to comment.