Add SLSA Go releaser workflow#2830
Add SLSA Go releaser workflow#2830distressedmykah wants to merge 3 commits intointegrations:mainfrom
Conversation
This workflow compiles a Go project using a SLSA3 compliant builder and generates a provenance file.
|
Hi @distressedmykah It seems GitHub introduced some time ago own attestation (provenance) solution https://docs.github.com/en/actions/how-tos/secure-your-work/use-artifact-attestations/increase-security-rating. |
|
I did some tests on my fork with GitHub attestation. The release workflow can be modified like this one https://github.com/vk-or/terraform-provider-github/blob/main/.github/workflows/release.yml#L50-L52 Maybe @nickfloyd could share what is preferable way for this repo. |
|
I do not think this workflow (from PR) will work as it is not prevenance generator but whole build to replace Goreleaser. |
|
Finally I could get multiple.intoto.jsonl as result of the run of
to be honest i would prefer GitHub cli and GitHub attestation to prove integrity (more easy to set up Actions and to get verification as many of us have GH CLI installed), instead of suggested SLSA way. |
|
@ViacheslavKudinov Thanks for thinking through this. My preference would be to use the GitHub native solution Something like this in the If we were to make something like this a priority I'd like the change to be a small iteration and low impact to our ci as possible. |
@nickfloyd you are welcome. I will create a PR to address it with Validation could be done by running (attestation was created for |
|
Added another PR #2846 |
|
The current build process should already be compliant. |
This workflow compiles a Go project using a SLSA3 compliant builder and generates a provenance file.
Resolves #ISSUE_NUMBER
Before the change?
After the change?
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!