Skip to content

Commit

Permalink
Merge pull request #300 from spacemeshos/workload-identity
Browse files Browse the repository at this point in the history
Update authentication method to workload identity
  • Loading branch information
andres-spacemesh authored Nov 5, 2024
2 parents 9860339 + 3fe0b0b commit 6d40322
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v2

- name: Init gcloud
run: |
echo "${{ secrets.GCLOUD_KEY }}" | base64 -d > key.json
gcloud auth activate-service-account --key-file=key.json
- name: Setup gcloud authentication
uses: google-github-actions/auth@v2
id: 'auth'
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
workload_identity_provider: ${{ secrets.WIP }}
service_account: ${{ secrets.SERVICE_ACCOUNT }}
token_format: access_token

- name: Build to Mainnet Explorer
env:
Expand Down

0 comments on commit 6d40322

Please sign in to comment.