ci: prevent google auth warnings when reauthenticating (#1697)

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-04-27 10:55:57 +02:00 committed by GitHub
parent 0c206e62d0
commit 12216ea997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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