From 52482a1d64066800724de6528d1bed9e50dac852 Mon Sep 17 00:00:00 2001 From: David Santamaria Date: Fri, 29 May 2026 18:50:01 +0200 Subject: [PATCH] ci: migrate deploy to google-github-actions auth/setup-gcloud v2 The old GoogleCloudPlatform/github-actions/setup-gcloud@master action was retired by Google and no longer resolves, breaking the deploy job at setup. Switch to google-github-actions/auth@v2 + setup-gcloud@v2 (auth is now a separate step using credentials_json), and bump checkout/setup-go versions. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/go.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a6de045..8b0df58 100755 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,13 +19,13 @@ jobs: steps: - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ^1.13 id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get dependencies run: | @@ -47,13 +47,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + # Authenticate to Google Cloud with the service account key + - id: auth + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ secrets.RUN_SA_KEY }} # Setup gcloud CLI - - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + - uses: google-github-actions/setup-gcloud@v2 with: - version: '290.0.1' - service_account_key: ${{ secrets.RUN_SA_KEY }} project_id: ${{ secrets.GOOGLE_CLOUD_RUN_PROJECT }} # Build and push image to Google Container Registry