Skip to content

Commit 069f858

Browse files
committed
chore(workflows): publish workload should provide build provenance
1 parent ada13b7 commit 069f858

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
name: artifacts
2828
permissions:
2929
contents: write # Needed to upload artifacts.
30+
id-token: write # Needed for attestation.
31+
attestations: write # Needed for attestations.
3032
runs-on: ubuntu-latest
3133
steps:
3234
- name: harden runner
@@ -46,14 +48,28 @@ jobs:
4648
- name: 'assemble artifacts'
4749
run: ./hack/assemble.sh
4850

49-
- name: 'upload sprout-x86_64.efi artifact'
51+
- name: 'upload sprout-x86_64.efi.zip artifact'
52+
id: upload-sprout-x86_64-efi
5053
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5154
with:
52-
name: sprout-x86_64.efi
55+
name: sprout-x86_64.efi.zip
5356
path: target/assemble/sprout-x86_64.efi
5457

55-
- name: 'upload sprout-aarch64.efi artifact'
58+
- name: 'upload sprout-aarch64.efi.zip artifact'
59+
id: upload-sprout-aarch64-efi
5660
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5761
with:
58-
name: sprout-aarch64.efi
62+
name: sprout-aarch64.efi.zip
5963
path: target/assemble/sprout-aarch64.efi
64+
65+
- name: 'attest sprout-x86_64.efi.zip artifact'
66+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
67+
with:
68+
subject-name: sprout-x86_64.efi.zip
69+
subject-digest: "sha256:${{ steps.upload-sprout-x86_64-efi.outputs.artifact-digest }}"
70+
71+
- name: 'attest sprout-aarch64.efi.zip artifact'
72+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
73+
with:
74+
subject-name: sprout-aarch64.efi.zip
75+
subject-digest: "sha256:${{ steps.upload-sprout-aarch64-efi.outputs.artifact-digest }}"

0 commit comments

Comments
 (0)