-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.39 KB
/
build-and-sign-eif.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Build and sign EIF
on:
push:
branches:
- main
paths:
- ".github/workflows/**"
- "enclave/**"
jobs:
build_and_sign_eif:
name: Build and sign EIF
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
attestations: write
outputs:
digest: ${{ steps.build-eif.outputs.ghcr-artifact-digest }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build EIF
id: build-eif
uses: richardfan1126/nitro-enclaves-eif-build-action@beta-github-attest
with:
docker-build-context-path: enclave
enable-ghcr-push: true
enable-artifact-sign: true
enable-github-attest: true
eif-file-name: enclave.eif
eif-info-file-name: enclave-info.json
artifact-tag: ${{ github.sha }}
save-pcrs-in-annotation: true
provenance:
needs:
- build_and_sign_eif
permissions:
actions: read
id-token: write
packages: write
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
image: ghcr.io/${{ github.repository }}
digest: sha256:${{ needs.build_and_sign_eif.outputs.digest }}
registry-username: ${{ github.actor }}
secrets:
registry-password: ${{ secrets.GITHUB_TOKEN }}