Skip to content

Commit

Permalink
add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
gal-legit committed Nov 22, 2022
1 parent 50f47cc commit fe28480
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/builders/generic/README.md
Expand Up @@ -321,6 +321,10 @@ This section explains how to generate non-forgeable SLSA provenance with existin

If you use [GoReleaser](https://github.com/goreleaser/goreleaser-action) to generate your build, you can easily
generate SLSA3 provenance by updating your existing workflow with the steps indicated in the workflow below:
**Notes**:
- Make sure you did not disable checksum generation in the goreleaser yml.
- Make sure you specified sha256 as the algorithm for the checksum or left it empty (sha256 is the default).
- To enable provenance generation for dockers (as well as artifacts), use goreleaser version >= v1.13.0.

1. Declare an `outputs` for the GoReleaser job:

Expand All @@ -331,7 +335,7 @@ jobs:
hashes: ${{ steps.hash.outputs.hashes }}
```

2. Add an `id: run-goreleaser` field to your goreleaser step. Use goreleaser version >= v1.13.0 to enable provenance generation for dockers.
2. Add an `id: run-goreleaser` field to your goreleaser step:

```yaml
steps:
Expand Down

0 comments on commit fe28480

Please sign in to comment.