Skip to content

Commit

Permalink
Add steps to view SLSA provenance in README
Browse files Browse the repository at this point in the history
  • Loading branch information
richardfan1126 committed May 17, 2024
1 parent 76061f5 commit 42514d3
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ _(You can choose one to perform depending on you requirements):_
E.g.

```bash
gh attestation verify oci://ghcr.io/richardfan1126/nitro-enclaves-cosign-sandbox:94a13386dbce65ebd079aad4183930d8155ba087 \
gh attestation verify oci://ghcr.io/richardfan1126/how-high-is-my-salary-enclave-app:f088278396d8c4d914a871ccacecd7fb497a958c \
--owner richardfan1126
```

Expand All @@ -169,7 +169,7 @@ _(You can choose one to perform depending on you requirements):_
E.g.

```bash
gh attestation verify oci://ghcr.io/richardfan1126/nitro-enclaves-cosign-sandbox:94a13386dbce65ebd079aad4183930d8155ba087 \
gh attestation verify oci://ghcr.io/richardfan1126/how-high-is-my-salary-enclave-app:f088278396d8c4d914a871ccacecd7fb497a958c \
--owner richardfan1126 \
--format json
```
Expand Down Expand Up @@ -207,6 +207,26 @@ _(You can choose one to perform depending on you requirements):_
Verified build using builder "https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@refs/tags/v2.0.0" at commit 0123456789abcdef0123456789abcdef01234567
PASSED: Verified SLSA provenance
```

To view the [SLSA provenance](https://slsa.dev/spec/v0.2/provenance) of the build, run the following commands

_You will need cosign for the following commands. Read the installation step [here](https://docs.sigstore.dev/system_config/installation/)_

```bash
cosign download attestation <artifact_uri> \
| jq -r '.payload' \
| base64 -d \
| jq
```

E.g.

```bash
cosign download attestation ghcr.io/richardfan1126/how-high-is-my-salary-enclave-app:f088278396d8c4d914a871ccacecd7fb497a958c \
| jq -r '.payload' \
| base64 -d \
| jq
```
</details>

### Obtain PCR values of the EIF
Expand Down

0 comments on commit 42514d3

Please sign in to comment.