Skip to content

Commit a200ba1

Browse files
devin-ai-integration[bot]Joe Petrich
andcommitted
[ENG-xxx] Fix CI workflow to handle authentication conditionally
Co-Authored-By: Joe Petrich <[email protected]>
1 parent cc00105 commit a200ba1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ jobs:
2121
fetch-depth: 0
2222

2323
- name: Authenticate to Google Cloud
24+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
2425
uses: google-github-actions/auth@v1
2526
with:
2627
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
2728
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }}
2829

2930
- name: Set up gcloud (for KMS client lib to auth)
31+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
3032
uses: google-github-actions/setup-gcloud@v1
3133
with:
3234
project_id: courtyard-frontend

0 commit comments

Comments
 (0)