-
Notifications
You must be signed in to change notification settings - Fork 47
Update SLSA v1 schema _type value #3097
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
base: main
Are you sure you want to change the base?
Conversation
Review Summary by QodoSupport SLSA v1 statement type with v0.1 backward compatibility
WalkthroughsDescription• Update SLSA v1 schema to accept both v1 and v0.1 statement types • Add validation logic for backward compatibility with Tekton Chains bug • Upgrade in-toto-golang dependency from v0.9.0 to v0.10.0 • Update multiple Go dependencies to latest versions Diagramflowchart LR
A["SLSA Provenance Validation"] --> B["Accept v1 Statement Type"]
A --> C["Accept v0.1 Statement Type"]
B --> D["Updated Schema"]
C --> D
D --> E["Tekton Chains Bug Workaround"]
F["Dependency Updates"] --> G["in-toto-golang v0.10.0"]
F --> H["Other Go Dependencies"]
File Changes1. internal/attestation/slsa_provenance_v1.go
|
Code Review by Qodo
1. Wrong attestation type output
|
The schema and validation logic now accept both the new v1 statement type (https://in-toto.io/Statement/v1) and the legacy v0.1 type to maintain backward compatibility with Tekton Chains bug while supporting the latest in-toto specification. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Ref: tektoncd/chains#920 Ref: https://issues.redhat.com/browse/EC-1633
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Ref: https://issues.redhat.com/browse/EC-1648 Dealing with these deprecations requires a major refactoring, which doesn't fit in this PR. For this reason, let's ignore all of the warnings for now, and deal with them in a later moment.
The schema and validation logic now accept both the new v1 statement type (https://in-toto.io/Statement/v1) and the legacy v0.1 type to maintain backward compatibility with Tekton Chains bug while supporting the latest in-toto specification.
Note: bumping in-toto dependency to v0.10.0 caused many deprecation warnings. Dealing with these deprecations requires a major refactoring, which doesn't fit in this PR. For this reason, i added a commit to ignore all of the warnings for now, and deal with them in a later moment. (https://issues.redhat.com/browse/EC-1648)
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Ref: tektoncd/chains#920
Ref: https://issues.redhat.com/browse/EC-1633