Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make branch optional #192

Merged
merged 13 commits into from
Aug 9, 2022

Conversation

laurentsimon
Copy link
Contributor

@laurentsimon laurentsimon commented Aug 5, 2022

If a release is made from a commit (rather than a branch):

./slsa-verifier-linux-amd64 \
  -provenance artifacts.intoto.jsonl \
  -artifact-path secure_package_template-0.2.0-py3-none-any.whl \
  -tag 0.1.9 \
  -source github.com/sethmlarson/python-slsa-release-test

FAILED: SLSA verification failed: invalid DSSE envelope payload: environment type string

This PR changes the behavior to:

FAILED: SLSA verification failed: expected branch 'refs/heads/main', got '': branch used to generate the binary does not match provenance
exit status 2

This PR also makes the branch an optional argument to the CLI.
We need to add support for commit, see #180 (comment)

verifiers/internal/gha/provenance.go Outdated Show resolved Hide resolved
verifiers/internal/gha/provenance.go Outdated Show resolved Hide resolved
@laurentsimon laurentsimon changed the title feat: handle build from a commit feat: make branch optional Aug 9, 2022
@laurentsimon laurentsimon enabled auto-merge (squash) August 9, 2022 21:23
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.

None yet

3 participants