Skip to content

Commit 6b79300

Browse files
add cli container provenance (#334)
* generate cli container provenance Signed-off-by: Spencer Schrock <[email protected]> * tag the cli container with the release tag Signed-off-by: Spencer Schrock <[email protected]> --------- Signed-off-by: Spencer Schrock <[email protected]>
1 parent 49cca7c commit 6b79300

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
containerfiles: |
7474
./Containerfile
7575
image: ghcr.io/sigstore/model-transparency-cli
76-
tags: latest
76+
tags: "latest ${{ github.event.release.tag_name }}"
7777
archs: amd64
7878
oci: false
7979

@@ -99,6 +99,13 @@ jobs:
9999
tags: ${{ steps.build_image.outputs.tags }}
100100
registry: ghcr.io
101101

102+
- name: Generate artifact attestation
103+
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0
104+
with:
105+
subject-name: ghcr.io/sigstore/model-transparency-cli
106+
subject-digest: ${{ steps.push.outputs.digest }}
107+
push-to-registry: true
108+
102109
# TODO: Create and publish release notes
103110
# TODO: Generate SLSA provenance for the wheels
104111
# TODO: Sign artifacts with sigstore and publish to release page

0 commit comments

Comments
 (0)