Skip to content

Commit 1d93841

Browse files
committed
Publish SLSA provenance
1 parent 5be5ab9 commit 1d93841

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/build-image.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
permissions:
1515
id-token: write # This is required for requesting the JWT
1616
contents: read # This is required for actions/checkout
17+
attestations: 'write' # To publish the SLSA attestation
18+
19+
env:
20+
IMAGE: public.ecr.aws/s2t1d4c6/enclaver-io/nitro-cli
1721

1822
steps:
1923
- name: Set up QEMU
@@ -35,8 +39,16 @@ jobs:
3539
registry-type: public
3640

3741
- name: Build Nitro CLI Image
42+
id: build
3843
uses: docker/build-push-action@v3
3944
with:
4045
platforms: linux/amd64,linux/arm64
4146
push: true
42-
tags: public.ecr.aws/s2t1d4c6/enclaver-io/nitro-cli:latest
47+
tags: ${{ env.IMAGE }}:latest
48+
49+
- name: Generate SLSA provenance
50+
uses: actions/attest-build-provenance@v3
51+
with:
52+
subject-name: ${{ env.IMAGE }}
53+
subject-digest: ${{ steps.build.outputs.digest }}
54+
push-to-registry: true

0 commit comments

Comments
 (0)