From 907de5ed1c7d23ff57e5e4478d0ad3dde6386e60 Mon Sep 17 00:00:00 2001 From: Hongli Lai Date: Sat, 20 Jul 2024 20:23:33 +0200 Subject: [PATCH] ... --- .github/workflows/ci-cd-main.yml | 5 +++++ .github/workflows/ci-cd-main.yml.erb | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci-cd-main.yml b/.github/workflows/ci-cd-main.yml index b296a524..f41a7c78 100644 --- a/.github/workflows/ci-cd-main.yml +++ b/.github/workflows/ci-cd-main.yml @@ -51,6 +51,10 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/fix/cicd-new-workflows' - uses: actions/checkout@v4 + - uses: google-github-actions/auth@v2 + with: + project_id: ${{ secrets.GCLOUD_PROJECT }} + workload_identity_provider: projects/${{ secrets.GCLOUD_PROJECT }}/locations/global/workloadIdentityPools/github/providers/github - uses: azure/login@v2 with: tenant-id: ${{ secrets.AZURE_TENANT_ID }} @@ -66,6 +70,7 @@ jobs: env: GITHUB_ACTOR: ${{ github.actor }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: 'false' check_workflow_uptodate: diff --git a/.github/workflows/ci-cd-main.yml.erb b/.github/workflows/ci-cd-main.yml.erb index de988087..b1686911 100644 --- a/.github/workflows/ci-cd-main.yml.erb +++ b/.github/workflows/ci-cd-main.yml.erb @@ -41,6 +41,10 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/fix/cicd-new-workflows' - uses: actions/checkout@v4 + - uses: google-github-actions/auth@v2 + with: + project_id: ${{ secrets.GCLOUD_PROJECT }} + workload_identity_provider: projects/${{ secrets.GCLOUD_PROJECT }}/locations/global/workloadIdentityPools/github/providers/github - uses: azure/login@v2 with: tenant-id: ${{ secrets.AZURE_TENANT_ID }} @@ -56,6 +60,7 @@ jobs: env: GITHUB_ACTOR: ${{ github.actor }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: 'false' check_workflow_uptodate: