We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8deac5c commit 0ba941fCopy full SHA for 0ba941f
ci/tasks/collect-gcp-image/run
@@ -2,12 +2,12 @@
2
3
set -eo pipefail
4
5
-ACCOUNT_EMAIL=$(echo $ACCOUNT_JSON | jq -r .client_email)
6
-PROJECT_ID=$(echo $ACCOUNT_JSON | jq -r .project_id)
+ACCOUNT_EMAIL=$(echo "${ACCOUNT_JSON}" | jq -r .client_email)
+PROJECT_ID=$(echo "${ACCOUNT_JSON}" | jq -r .project_id)
7
8
-echo "$ACCOUNT_JSON" > /tmp/account_json
9
-gcloud auth activate-service-account --quiet $ACCOUNT_EMAIL --key-file /tmp/account_json
10
-gcloud config set project $PROJECT_ID
+echo "${ACCOUNT_JSON}" > /tmp/account_json
+gcloud auth activate-service-account --quiet "${ACCOUNT_EMAIL}" --key-file /tmp/account_json
+gcloud config set project "${PROJECT_ID}"
11
12
set -x
13
0 commit comments