Skip to content

Commit e9436e7

Browse files
committed
Added permissions to gha setup.
1 parent 07f2fd6 commit e9436e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/main.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ on:
1010
jobs:
1111
deploy_to_dev:
1212
name: Dev
13+
permissions:
14+
contents: write
15+
id-token: write
1316
uses: ./.github/workflows/deploy-to-dev.yaml
1417
secrets:
1518
NAIS_DEPLOY_API_KEY: ${{ secrets.NAIS_DEPLOY_API_KEY }}
1619
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
1720

1821
deploy_to_prod:
1922
name: Prod
23+
permissions:
24+
contents: write
25+
id-token: write
2026
needs: deploy_to_dev
2127
uses: ./.github/workflows/deploy-to-prod.yaml
2228
secrets:

0 commit comments

Comments
 (0)