diff --git a/action.yaml b/action.yaml index 01b26d9..81274a2 100644 --- a/action.yaml +++ b/action.yaml @@ -37,10 +37,8 @@ runs: echo $REQUEST_TOKEN echo "def" - # 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") - curl -sLS "$REQUEST_TOKEN_URL&audience=uffizzi" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $REQUEST_TOKEN" - # echo "$OIDC_TOKEN" + OIDC_TOKEN=$(curl -sLS "${REQUEST_TOKEN_URL}&audience=uffizzi" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $REQUEST_TOKEN") + uffizzi login_by_identity_token --token "${OIDC_TOKEN}" --access-token "${ACCESS_TOKEN}" --server "${UFFIZZI_SERVER}" # ./${{ inputs.binary-name }} login_by_identity_token --token ${OIDC_TOKEN} --access-token ${ACCESS_TOKEN} --server=app.uffizzi.com