Skip to content

Commit c83c63a

Browse files
authored
Set permissions in workflow (#1050)
1 parent ca3c2ab commit c83c63a

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/on_build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77

88
pull_request:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
uses: ./.github/workflows/build-template.yml

.github/workflows/on_deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- master
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
REGISTRY: europe-north1-docker.pkg.dev/artifact-registry-5n/kostra-docker
1114
IMAGE: kostra-kontrollprogram

.github/workflows/on_pre_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- prereleased
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
uses: ./.github/workflows/build-template.yml

.github/workflows/on_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- released
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
uses: ./.github/workflows/build-template.yml

0 commit comments

Comments
 (0)