mirror of
https://github.com/tiennm99/cheahjs-free-llm-api-resources.git
synced 2026-10-14 16:17:03 +00:00
feat: Authenticate with GCP using workload identity federation
This commit is contained in:
1 parent
436a273907
commit
4cc7d642ed
1 file changed
+7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user