Skip to content

Commit fb8c8bf

Browse files
committed
Fix permissions set on docker build/publish and align with main & release workflows
1 parent f2a6504 commit fb8c8bf

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

.github/workflows/docker_build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212

1313
permissions:
1414
contents: read
15-
packages: write
1615

1716
jobs:
1817
build:

.github/workflows/docker_publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
required: true
1212
type: string
1313

14+
permissions:
15+
packages: write
16+
1417
jobs:
1518
deploy:
1619
continue-on-error: true

.github/workflows/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
needs: jar-build
5252
permissions:
5353
contents: read
54-
packages: write
5554
uses: ./.github/workflows/docker_build.yml
5655
secrets: inherit
5756
with:
@@ -61,8 +60,6 @@ jobs:
6160
docker-deploy:
6261
needs: [jar-build, docker-build]
6362
permissions:
64-
contents: read # To read secrets
65-
id-token: write # This is required for requesting the JWT
6663
packages: write
6764
uses: ./.github/workflows/docker_publish.yml
6865
secrets: inherit

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ jobs:
5757
needs: release
5858
permissions:
5959
contents: read
60-
packages: write
6160
uses: ./.github/workflows/docker_build.yml
6261
secrets: inherit
6362
with:
@@ -67,8 +66,6 @@ jobs:
6766
docker-deploy:
6867
needs: [release, docker-build]
6968
permissions:
70-
contents: read # To read secrets
71-
id-token: write # This is required for requesting the JWT
7269
packages: write
7370
uses: ./.github/workflows/docker_publish.yml
7471
secrets: inherit

0 commit comments

Comments
 (0)