Skip to content

Commit aa00081

Browse files
committed
use --project in gcloud command
1 parent 6aefc77 commit aa00081

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

install-bundler/bundler/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ echo ""
8989

9090
echo ""
9191
echo "Getting config values from GCP secret ${GCP_PLAINTEXT_CONFIG_SECRET}"
92+
# when gcloud commands are run in githubaction always specify --project because
93+
# it has the highest level of precedence
9294
GCP_SECRET_CONFIG_VALUE=$(gcloud secrets versions access latest \
93-
--secret="${GCP_PLAINTEXT_CONFIG_SECRET}")
95+
--secret="${GCP_PLAINTEXT_CONFIG_SECRET}"\
96+
--project="${PROJECT_ID}")
9497

9598
if [[ -z "${GCP_SECRET_CONFIG_VALUE}" ]] ; then
9699
msj=""

0 commit comments

Comments
 (0)