fix: use metadata server for smoke-test token
This commit is contained in:
parent
04891081eb
commit
268e13d8d2
|
|
@ -70,7 +70,7 @@ steps:
|
|||
BASE_URL="https://osvauco-agent-357036551735.us-central1.run.app"
|
||||
echo "BASE_URL: $$BASE_URL"
|
||||
|
||||
TOKEN=$$(gcloud auth print-identity-token 2>/dev/null)
|
||||
TOKEN=$$(curl -s -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=$$BASE_URL&format=full")
|
||||
echo "TOKEN_EMPTY: $([ -z "$$TOKEN" ] && echo YES || echo NO)"
|
||||
echo "TOKEN_PREFIX: $${TOKEN:0:30}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user