Skip to content

Commit

Permalink
Add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Slododanyuk committed May 16, 2024
1 parent 79bbcbe commit 890a886
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
name: Build and Push image
runs-on: ubuntu-latest

permissions:
contents: 'read'
id-token: 'write'

steps:
- name: Set Dfuse Version
run: |
Expand Down Expand Up @@ -78,9 +82,9 @@ jobs:
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
token_format: 'access_token'
workload_identity_provider: '${{ secrets.REG_WIF }}'
service_account: '[email protected]'
token_format: 'access_token'
workload_identity_provider: '${{ secrets.REG_WIF }}'
service_account: '[email protected]'

- name: Setup gcloud cli
uses: google-github-actions/setup-gcloud@v1
Expand Down

0 comments on commit 890a886

Please sign in to comment.