Avoid project config during WIF auth
This commit is contained in:
parent
65809da33a
commit
e5da3016ea
1 changed files with 2 additions and 1 deletions
|
|
@ -138,8 +138,9 @@ gcloud iam workload-identity-pools create-cred-config "$provider_resource" \
|
|||
--output-file "$credential_config"
|
||||
|
||||
chmod 0600 "$credential_config"
|
||||
export CLOUDSDK_CORE_PROJECT="$project_id"
|
||||
export GOOGLE_CLOUD_PROJECT="$project_id"
|
||||
gcloud auth login --cred-file="$credential_config" --brief
|
||||
gcloud config set project "$project_id" >/dev/null
|
||||
|
||||
{
|
||||
echo "GOOGLE_APPLICATION_CREDENTIALS=$credential_config"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue