File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ jobs:
3838 echo "Requesting OIDC Token..."
3939 echo "Token Request: $ACTIONS_ID_TOKEN_REQUEST_TOKEN"
4040
41- # jwt_token=$(curl -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
42- # -H "Accept: application/json" \
43- # "https://token.actions.githubusercontent.com/?audience=https://accounts.google.com")
44- # echo "JWT Token Response: $jwt_token"
45-
46- curl -v -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
41+ jwt_token=$(curl -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
4742 -H "Accept: application/json" \
48- "https://token.actions.githubusercontent.com/?audience=https://accounts.google.com"
43+ "${ACTIONS_ID_TOKEN_REQUEST_URL}" | jq -r '.value')
44+ echo "JWT Token Response: $jwt_token"
45+
46+ # curl -v -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
47+ # -H "Accept: application/json" \
48+ # "https://token.actions.githubusercontent.com/?audience=https://accounts.google.com"
4949
5050 echo "JWT_TOKEN=$jwt_token" >> $GITHUB_ENV
5151
You can’t perform that action at this time.
0 commit comments