Skip to content

Commit 18bb277

Browse files
committed
1 parent 55c6f5d commit 18bb277

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ env:
1414
LATEST_ZSH: "5.9"
1515
LATEST_OMZ: "master" # TODO: we need to change master with main when migrating the branch
1616

17-
permissions:
18-
id-token: write
19-
contents: read
20-
attestations: write
21-
packages: write
22-
2317
jobs:
2418
get-omz-versions:
2519
name: Get Oh My Zsh versions
@@ -78,13 +72,8 @@ jobs:
7872
push: ${{ github.event_name != 'pull_request' }}
7973
build-args: "OMZ_VERSION=${{ matrix.omz-version }}"
8074
tags: ${{ steps.tags.outputs.tags }}
81-
- name: Attest
82-
uses: actions/attest-build-provenance@v1
83-
id: attest
84-
with:
85-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
86-
subject-digest: ${{ steps.push.outputs.digest }}
87-
push-to-registry: true
75+
provenance: mode=max
76+
sbom: true
8877

8978
build-zsh:
9079
name: Build Zsh Docker images
@@ -164,13 +153,8 @@ jobs:
164153
push: ${{ github.event_name != 'pull_request' }}
165154
build-args: "ZSH_VERSION=${{ matrix.zsh-version }}"
166155
tags: ${{ steps.tags.outputs.tags }}
167-
- name: Attest
168-
uses: actions/attest-build-provenance@v1
169-
id: attest
170-
with:
171-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
172-
subject-digest: ${{ steps.push.outputs.digest }}
173-
push-to-registry: true
156+
provenance: mode=max
157+
sbom: true
174158

175159
update-image-readme:
176160
needs:

0 commit comments

Comments
 (0)