[docker/actions] unset GOOGLE_CREDENTIALS (#4972)

This commit is contained in:
Simen A. W. Olsen 2020-07-07 17:35:17 +02:00 committed by GitHub
parent 0e9b865f68
commit b0d9280416
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,9 @@ CHANGELOG
- Go SDK: Input type interfaces should declare pointer type impls where appropriate
[#4911](https://github.com/pulumi/pulumi/pull/4911)
- Fixes issue where base64-encoded GOOGLE_CREDENTIALS causes problems with other commands
[#4972](https://github.com/pulumi/pulumi/pull/4972)
## 2.5.0 (2020-06-25)
- Go program gen: prompt array conversion, unused range vars, id handling

View file

@ -82,6 +82,8 @@ if [ ! -z "$GOOGLE_CREDENTIALS" ]; then
# Check if GOOGLE_CREDENTIALS is base64 encoded
if [[ $GOOGLE_CREDENTIALS =~ ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$ ]]; then
echo "$GOOGLE_CREDENTIALS"|base64 -d > $GOOGLE_APPLICATION_CREDENTIALS
# unset for other gcloud commands using this variable.
unset GOOGLE_CREDENTIALS
else
echo "$GOOGLE_CREDENTIALS" > $GOOGLE_APPLICATION_CREDENTIALS
fi