Skip to content

Commit

Permalink
oidc token change
Browse files Browse the repository at this point in the history
  • Loading branch information
gopuman committed Jul 12, 2023
1 parent 5e86ed5 commit 58ec883
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ runs:
# Check if the input variable `action` is create
run: |
export UFFIZZI_SERVER=app.uffizzi.com
# export REQUEST_TOKEN=${ACTIONS_ID_TOKEN_REQUEST_TOKEN}
# export REQUEST_TOKEN_URL=${ACTIONS_ID_TOKEN_REQUEST_URL}
export REQUEST_TOKEN=${ACTIONS_ID_TOKEN_REQUEST_TOKEN}
export REQUEST_TOKEN_URL=${ACTIONS_ID_TOKEN_REQUEST_URL}
wget https://github.com/UffizziCloud/uffizzi_cli/releases/download/${{ inputs.release-tag }}/${{ inputs.binary-name }} --quiet
chmod +x ${{ inputs.binary-name }}
Expand All @@ -34,7 +34,7 @@ runs:
# echo ${REQUEST_TOKEN_URL}
# OIDC_TOKEN=$(curl -sLS ${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=uffizzi -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}")
OIDC_TOKEN=$(curl -sLS "${ACTIONS_ID_TOKEN_REQUEST_URL}"&audience=uffizzi -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}")
OIDC_TOKEN=$(curl -sLS "$REQUEST_TOKEN_URL&audience=uffizzi" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $REQUEST_TOKEN")
./${{ inputs.binary-name }} login_by_identity_token --token ${OIDC_TOKEN} --access-token ${ACCESS_TOKEN} --server=app.uffizzi.com

0 comments on commit 58ec883

Please sign in to comment.