Skip to content

Conversation

@ramonpetgrave64
Copy link
Member

@ramonpetgrave64 ramonpetgrave64 commented Oct 29, 2024

Followup to slsa-framework/slsa-github-generator#3777

This PR adds a missing modification for getting the leaf certificate in the new Bundle format v0.3.

In my original experiments, I did have this method in a dev branch, but neglected to include it in the final PR.

Testing

Followup

@ramonpetgrave64 ramonpetgrave64 marked this pull request as ready for review October 29, 2024 19:37
@ramonpetgrave64 ramonpetgrave64 requested a review from a team as a code owner October 29, 2024 19:37
@ramonpetgrave64
Copy link
Member Author

@ramonpetgrave64 ramonpetgrave64 merged commit 17f7958 into main Oct 29, 2024
21 checks passed
ramonpetgrave64 added a commit to slsa-framework/slsa-github-generator that referenced this pull request Feb 12, 2025
# Summary

Followup up to #3777, #3985,
slsa-framework/slsa-verifier#813

Redo: Changes the internal go code to produce Sigstore Bundles, instead
of only signed DSSE envelopes. This means that the generic generator and
go builder workflows now produce Sigstore Bundles, just like the other
BYOB-type workflows.

## Testing Process

Tested with a previous commit that contains a debug workflow
*
https://github.com/slsa-framework/slsa-github-generator/actions/runs/13271183182
*
main...internal-builder-bundle#diff-7e191d865f72ecdac3334e38bc0bd33c12349c6729a1702bc81765ecfcfb2c82
   * generates provenances with `push` events
* it uses a slightly modified version of slsa-verifier that respect
provenances generated by non-main branches.
*
slsa-framework/slsa-verifier@main...sghg-go-bundle

## Checklist

- [x] Review the contributing
[guidelines](https://github.com/slsa-framework/slsa-github-generator/blob/main/CONTRIBUTING.md)
- [x] Add a reference to related issues in the PR description.
- [x] Update documentation if applicable.
- [x] Add unit tests if applicable.
- [x] Add changes to the
[CHANGELOG](https://github.com/slsa-framework/slsa-github-generator/blob/main/CHANGELOG.md)
if applicable.

---------

Signed-off-by: Ramon Petgrave <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants