fix(opax): accept GCE VM metadata credentials for ADC check
This commit is contained in:
parent
8f344823ef
commit
fbdbf14552
|
|
@ -68,7 +68,7 @@ if [[ -z "${OPAX_LOADED-}" ]]; then
|
||||||
true
|
true
|
||||||
|
|
||||||
run_check "Application Default Credentials (ADC)" \
|
run_check "Application Default Credentials (ADC)" \
|
||||||
"gcloud auth application-default print-access-token --quiet" \
|
"curl -sf -H 'Metadata-Flavor: Google' 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token' | grep -q access_token || gcloud auth application-default print-access-token --quiet" \
|
||||||
"Run: gcloud auth application-default login" \
|
"Run: gcloud auth application-default login" \
|
||||||
true
|
true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user