Skip to content

Commit

Permalink
Update ci to enable federated auth for bq
Browse files Browse the repository at this point in the history
  • Loading branch information
vipin-dfe committed Jan 8, 2025
1 parent f81a3ac commit 12c33ba
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/deploy-environment-to-aks/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: ecf-bq
workload_identity_provider: projects/808138694727/locations/global/workloadIdentityPools/early-careers-framework/providers/early-careers-framework

- name: Apply Terraform
id: apply-terraform
shell: bash
Expand All @@ -59,6 +64,11 @@ runs:
with:
creds: ${{ inputs.azure-credentials }}

- uses: google-github-actions/auth@v2
with:
project_id: ecf-bq
workload_identity_provider: projects/808138694727/locations/global/workloadIdentityPools/early-careers-framework/providers/early-careers-framework

- name: Seed database
if: ${{ inputs.pull-request-number != '' }}
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
pull_request:
merge_group:

permissions:
id-token: write
pull-requests: write
packages: write

jobs:
lint:
name: Lint
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/destroy_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types: [closed]
branches: [main]

permissions:
id-token: write

jobs:
delete-review-app:
name: Delete Review App ${{ github.event.pull_request.number }}
Expand All @@ -19,6 +22,11 @@ jobs:
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- uses: google-github-actions/auth@v2
with:
project_id: ecf-bq
workload_identity_provider: projects/808138694727/locations/global/workloadIdentityPools/early-careers-framework/providers/early-careers-framework

- uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.5.4
Expand Down

0 comments on commit 12c33ba

Please sign in to comment.