feat: Authenticate with GCP using workload identity federation

This commit is contained in:
Jun Siang Cheah (aider) committed 2024-09-01 23:13:21 +01:00
1 parent 436a273907
commit 4cc7d642ed
1 file changed
+7
+7
View File
@@ -18,6 +18,12 @@ jobs:
- name: Install dependencies
run: |
pip install -r src/requirements.txt
pip install google-auth
- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: 'projects/576328904266/locations/global/workloadIdentityPools/github/providers/github-actions'
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Run script
env:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
@@ -25,6 +31,7 @@ jobs:
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
HYPERBOLIC_API_KEY: ${{ secrets.HYPERBOLIC_API_KEY }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.auth.outputs.credentials_file_path }}
run: |
python src/pull_available_models.py
- name: Check for changes