Skip to content

Commit

Permalink
Google Auth using SA key
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Alexandre35 committed Aug 18, 2023
1 parent ff05e11 commit c80f6c0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy-front-gcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ jobs:
- name: Checking out code
uses: actions/checkout@v3

- name: 'Authenticate to Google Cloud'
id: 'auth'
uses: 'google-github-actions/auth@v1'
- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v1.1.1'
with:
workload_identity_provider: 'projects/157663317275/locations/global/workloadIdentityPools/github/providers/github-provider'
service_account: 'github-actions@second-strand-395917.iam.gserviceaccount.com'
credentials_json: '${{ secrets.GCP_SA_KEY }}'

- name: Fix Auth
run: yes | gcloud auth login --cred-file="$GOOGLE_APPLICATION_CREDENTIALS"


- name: Installing dependencies
run: npm install
Expand Down

0 comments on commit c80f6c0

Please sign in to comment.