Skip to content

Commit

Permalink
fix: Use Workload Identity Federation
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Jun 26, 2024
1 parent 7073ad7 commit 8f5cc0e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: πŸ›« Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🐍 Set up Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -50,20 +50,22 @@ jobs:
environment: ${{ github.ref_name }}
steps:
- name: πŸ›« Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: πŸ— Authenticate with GCloud
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
project_id: 'decent-digit-629'
workload_identity_provider: 'projects/354656325390/locations/global/workloadIdentityPools/cfl-pool/providers/cfl-provider'
service_account: '[email protected]'

- name: πŸ€– Set up GCloud SDK
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2

- name: πŸ›  Install Backend Dependencies
working-directory: ./backend
Expand Down

0 comments on commit 8f5cc0e

Please sign in to comment.