From 12216ea9972aef554df697d0f2cbff9bd9c031fe Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Thu, 27 Apr 2023 10:55:57 +0200 Subject: [PATCH] ci: prevent google auth warnings when reauthenticating (#1697) Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/actions/login_gcp/action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/actions/login_gcp/action.yml b/.github/actions/login_gcp/action.yml index 0f328077b..f72ca4778 100644 --- a/.github/actions/login_gcp/action.yml +++ b/.github/actions/login_gcp/action.yml @@ -7,6 +7,18 @@ inputs: runs: using: "composite" steps: + - name: Clean env to prevent warnings + shell: bash + run: | + echo "CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=" >> "$GITHUB_ENV" + echo "GOOGLE_APPLICATION_CREDENTIALS=" >> "$GITHUB_ENV" + echo "GOOGLE_GHA_CREDS_PATH=" >> "$GITHUB_ENV" + echo "CLOUDSDK_CORE_PROJECT=" >> "$GITHUB_ENV" + echo "CLOUDSDK_PROJECT=" >> "$GITHUB_ENV" + echo "GCLOUD_PROJECT=" >> "$GITHUB_ENV" + echo "GCP_PROJECT=" >> "$GITHUB_ENV" + echo "GOOGLE_CLOUD_PROJECT=" >> "$GITHUB_ENV" + # As described at: # https://github.com/google-github-actions/setup-gcloud#service-account-key-json - name: Authorize GCP access