Skip to content

Commit

Permalink
Add workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad committed Sep 4, 2023
1 parent bda7397 commit efc2e6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:

jobs:
monitor:
permissions:
contents: read
id-token: write
security-events: write
uses: navikt/isworkflows/.github/workflows/codeql.yml@master
with:
languages: "[ 'javascript' ]"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dispatch-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
jobs:
deploy-dev:
name: Deploy to NAIS Dev-gcp
permissions:
contents: read
id-token: write
uses: navikt/isworkflows/.github/workflows/manual-deploy-dev.yml@master
with:
git-commit: ${{ github.event.inputs.gitCommit }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: push

jobs:
build-and-deploy:
permissions:
contents: read
id-token: write
uses: navikt/isworkflows/.github/workflows/node-build-deploy.yml@master
with:
dev-cluster: dev-gcp
Expand Down

0 comments on commit efc2e6b

Please sign in to comment.