Skip to content

Commit

Permalink
Use Docker action attestations
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella committed Sep 15, 2024
1 parent 55c6f5d commit 18bb277
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ env:
LATEST_ZSH: "5.9"
LATEST_OMZ: "master" # TODO: we need to change master with main when migrating the branch

permissions:
id-token: write
contents: read
attestations: write
packages: write

jobs:
get-omz-versions:
name: Get Oh My Zsh versions
Expand Down Expand Up @@ -78,13 +72,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
build-args: "OMZ_VERSION=${{ matrix.omz-version }}"
tags: ${{ steps.tags.outputs.tags }}
- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
provenance: mode=max
sbom: true

build-zsh:
name: Build Zsh Docker images
Expand Down Expand Up @@ -164,13 +153,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
build-args: "ZSH_VERSION=${{ matrix.zsh-version }}"
tags: ${{ steps.tags.outputs.tags }}
- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
provenance: mode=max
sbom: true

update-image-readme:
needs:
Expand Down

0 comments on commit 18bb277

Please sign in to comment.