Skip to content

Commit 34048ab

Browse files
Fjern NAIS_DEPLOY_APIKEY
1 parent f36f3d8 commit 34048ab

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/deploy.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
if: github.ref == 'refs/heads/main'
7070
runs-on: ubuntu-latest
7171
environment: dev-fss
72+
permissions:
73+
id-token: "write"
7274
steps:
7375
- name: Fetch NAIS yaml
7476
uses: actions/download-artifact@v6
@@ -78,7 +80,6 @@ jobs:
7880

7981
- uses: nais/deploy/actions/deploy@v2
8082
env:
81-
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
8283
CLUSTER: dev-fss
8384
RESOURCE: nais/nais.yaml
8485
VAR: image=${{ needs.build.outputs.image }}
@@ -91,6 +92,8 @@ jobs:
9192
if: github.ref == 'refs/heads/main'
9293
runs-on: ubuntu-latest
9394
environment: dev-fss
95+
permissions:
96+
id-token: "write"
9497
steps:
9598
- name: Fetch NAIS yaml
9699
uses: actions/download-artifact@v6
@@ -100,7 +103,6 @@ jobs:
100103

101104
- uses: nais/deploy/actions/deploy@v2
102105
env:
103-
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
104106
CLUSTER: dev-fss
105107
RESOURCE: nais/t5/nais.yaml
106108
VAR: image=${{ needs.build.outputs.image }}
@@ -113,6 +115,8 @@ jobs:
113115
if: github.ref == 'refs/heads/main'
114116
runs-on: ubuntu-latest
115117
environment: prod-fss
118+
permissions:
119+
id-token: "write"
116120
steps:
117121
- name: Fetch NAIS yaml
118122
uses: actions/download-artifact@v6
@@ -122,7 +126,6 @@ jobs:
122126

123127
- uses: nais/deploy/actions/deploy@v2
124128
env:
125-
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
126129
CLUSTER: prod-fss
127130
RESOURCE: nais/nais.yaml
128131
VAR: image=${{ needs.build.outputs.image }}

0 commit comments

Comments
 (0)