Skip to content

Commit aa6a8e9

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

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
required: true
1212
type: string
1313

14+
permissions:
15+
packages: write
16+
id-token: write # Required to authenticate with OIDC for AWS
17+
1418
jobs:
1519
deploy:
1620
continue-on-error: true

.github/workflows/main.yml

Lines changed: 1 addition & 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,9 +60,8 @@ 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
64+
id-token: write # Required to authenticate with OIDC for AWS
6765
uses: ./.github/workflows/docker_publish.yml
6866
secrets: inherit
6967
with:

.github/workflows/release.yml

Lines changed: 1 addition & 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,9 +66,8 @@ 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
70+
id-token: write # Required to authenticate with OIDC for AWS
7371
uses: ./.github/workflows/docker_publish.yml
7472
secrets: inherit
7573
with:

0 commit comments

Comments
 (0)