Skip to content

Commit b96f8cd

Browse files
authored
Fix workflow permissions (#1053)
* Set permissions in workflow * Fix permissions in workflow
1 parent d064c64 commit b96f8cd

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/on_build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
pull_request:
99

1010
permissions:
11-
contents: read
11+
contents: write
12+
id-token: write
1213

1314
jobs:
1415
build:

.github/workflows/on_deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- master
88

99
permissions:
10-
contents: read
10+
contents: write
11+
id-token: write
1112

1213
env:
1314
REGISTRY: europe-north1-docker.pkg.dev/artifact-registry-5n/kostra-docker

.github/workflows/on_pre_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- prereleased
77

88
permissions:
9-
contents: read
9+
contents: write
10+
id-token: write
1011

1112
jobs:
1213
build:

.github/workflows/on_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- released
77

88
permissions:
9-
contents: read
9+
contents: write
10+
id-token: write
1011

1112
jobs:
1213
build:

0 commit comments

Comments
 (0)