Skip to content

Commit

Permalink
Update CI to use federated auth for big query
Browse files Browse the repository at this point in the history
  • Loading branch information
vipin-dfe committed Dec 19, 2024
1 parent d2409b3 commit 3a62db0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ runs:
with:
azure-credentials: ${{ inputs.azure-credentials }}

- uses: google-github-actions/auth@v2
with:
project_id: teacher-vacancy-service
workload_identity_provider: projects/689616473831/locations/global/workloadIdentityPools/teaching-vacancies/providers/teaching-vacancies

- name: Pin Terraform version
uses: hashicorp/setup-terraform@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ on:
- reopened

concurrency: workflow-Build-and-deploy-${{ github.event.pull_request.number }}

permissions:
id-token: write
env:
DOCKER_REPOSITORY: ghcr.io/dfe-digital/teaching-vacancies

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/delete_review_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ on:
required: true

concurrency: workflow-Build-and-deploy-${{ github.event.pull_request.number }}

permissions:
id-token: write
env:
DOCKER_REPOSITORY: ghcr.io/dfe-digital/teaching-vacancies

Expand Down Expand Up @@ -55,6 +56,11 @@ jobs:
- uses: actions/checkout@v4
name: Checkout Code

- uses: google-github-actions/auth@v2
with:
project_id: teacher-vacancy-service
workload_identity_provider: projects/689616473831/locations/global/workloadIdentityPools/teaching-vacancies/providers/teaching-vacancies

- name: Set up Ruby
uses: ruby/setup-ruby@v1

Expand Down

0 comments on commit 3a62db0

Please sign in to comment.