Skip to content

Commit 55142e6

Browse files
committed
fix permissions
1 parent 747ce92 commit 55142e6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/build_multi_arch_image.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ name: Build and push docker image
1313
type: string
1414

1515
jobs:
16-
build_image:
16+
build_and_push_image:
1717
name: Build image for ${{ inputs.container_name }} on ${{ matrix.arch }}
1818
permissions:
19+
contents: read
20+
packages: write
21+
attestations: write
1922
id-token: write
2023
runs-on: '${{ matrix.runner }}'
2124
strategy:
@@ -139,10 +142,10 @@ jobs:
139142
CONTAINER_NAME: '${{ inputs.container_name }}'
140143
ARCHITECTURE: '${{ matrix.arch }}'
141144

142-
publish_image:
145+
publish_combined_image:
143146
name: Publish image for ${{ inputs.container_name }}
144147
runs-on: ubuntu-22.04
145-
needs: build_image
148+
needs: build_and_push_image
146149
permissions:
147150
contents: read
148151
packages: write

0 commit comments

Comments
 (0)