Skip to content

Commit

Permalink
Fix permissions set on docker build/publish and align with main & rel…
Browse files Browse the repository at this point in the history
…ease workflows
  • Loading branch information
giom-l committed Jun 21, 2024
1 parent f2a6504 commit fb8c8bf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:

permissions:
contents: read
packages: write

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
required: true
type: string

permissions:
packages: write

jobs:
deploy:
continue-on-error: true
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
needs: jar-build
permissions:
contents: read
packages: write
uses: ./.github/workflows/docker_build.yml
secrets: inherit
with:
Expand All @@ -61,8 +60,6 @@ jobs:
docker-deploy:
needs: [jar-build, docker-build]
permissions:
contents: read # To read secrets
id-token: write # This is required for requesting the JWT
packages: write
uses: ./.github/workflows/docker_publish.yml
secrets: inherit
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
needs: release
permissions:
contents: read
packages: write
uses: ./.github/workflows/docker_build.yml
secrets: inherit
with:
Expand All @@ -67,8 +66,6 @@ jobs:
docker-deploy:
needs: [release, docker-build]
permissions:
contents: read # To read secrets
id-token: write # This is required for requesting the JWT
packages: write
uses: ./.github/workflows/docker_publish.yml
secrets: inherit
Expand Down

0 comments on commit fb8c8bf

Please sign in to comment.