Skip to content

Commit 7ea8cb0

Browse files
Add gha permissions and remove snyk (#309)
1 parent b7c70b1 commit 7ea8cb0

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/codeql.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99

1010
jobs:
1111
monitor:
12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
1216
uses: navikt/isworkflows/.github/workflows/codeql.yml@master
1317
with:
1418
languages: "[ 'java' ]"

.github/workflows/dependency-submission.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ on:
99

1010
jobs:
1111
dependency_submission:
12+
permissions:
13+
contents: write
1214
uses: navikt/isworkflows/.github/workflows/gradle-dependency-submission.yml@master
1315
secrets: inherit

.github/workflows/dispatch.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
deploy-dev:
1313
name: Deploy to NAIS Dev-gcp
14+
permissions:
15+
contents: read
16+
id-token: write
1417
uses: navikt/isworkflows/.github/workflows/manual-deploy-dev.yml@master
1518
with:
1619
git-commit: ${{ github.event.inputs.gitCommit }}

.github/workflows/main.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ on: push
44

55
jobs:
66
build-and-deploy:
7+
permissions:
8+
contents: read
9+
id-token: write
710
uses: navikt/isworkflows/.github/workflows/kotlin-build-deploy.yml@master
811
secrets: inherit

.github/workflows/snyk.yaml

-12
This file was deleted.

0 commit comments

Comments
 (0)