Skip to content

Commit

Permalink
fix Workload Identity Federation OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
kinfinity committed Mar 5, 2024
1 parent bc407b9 commit 461cf97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/buildandpush-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ jobs:
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.PROJECT_ID }}
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITYPROVIDER }}
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
service_account: ${{ secrets.SERVICE_ACCOUNT }}

- name: Build and Push Image
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/infra-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ jobs:
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.PROJECT_ID }}
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITYPROVIDER }}
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
service_account: ${{ secrets.SERVICE_ACCOUNT }}

- name: Terraform Plan
if: ${{ github.event_name == 'pull_request' }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/k8s-apps-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ jobs:
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.PROJECT_ID }}
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITYPROVIDER }}
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
service_account: ${{ secrets.SERVICE_ACCOUNT }}

- name: Configure kubectl
uses: google-github-actions/setup-gcloud@v0
Expand Down

0 comments on commit 461cf97

Please sign in to comment.