diff --git a/.github/workflows/claude-wif-test.yaml b/.github/workflows/claude-wif-test.yaml index 2e392ded07a5..fd7571d2d58f 100644 --- a/.github/workflows/claude-wif-test.yaml +++ b/.github/workflows/claude-wif-test.yaml @@ -20,6 +20,8 @@ jobs: github.event.comment.author_association == 'OWNER') runs-on: arc-runner-set timeout-minutes: 10 + env: + HOME: /tmp steps: - name: Get PR ref if: github.event_name == 'issue_comment' @@ -36,11 +38,6 @@ jobs: repository: ${{ steps.pr.outputs.repo || github.repository }} persist-credentials: false - - name: Install Claude Code - run: | - curl -fsSL https://claude.ai/install.sh | bash - echo "$HOME/.local/bin" >> $GITHUB_PATH - - name: Authenticate to GCP via WIF uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2 with: @@ -48,6 +45,11 @@ jobs: service_account: claude-gha@hosted-control-planes.iam.gserviceaccount.com workload_identity_provider: projects/21066242673/locations/global/workloadIdentityPools/itpc-identity-pool/providers/github-com + - name: Install Claude Code + run: | + curl -fsSL https://claude.ai/install.sh | bash + echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Test Claude Code env: CLAUDE_CODE_USE_VERTEX: "1"