-
Notifications
You must be signed in to change notification settings - Fork 188
In toto attestation refactor #2734
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
Kusari Analysis Results:
No pinned version dependency changes, code issues or exposed secrets detected!
Found this helpful? Give it a 👍 or 👎 reaction! |
f946fc3 to
fb562d4
Compare
|
Kusari PR Analysis rerun based on - fb562d4 performed at: 2025-07-18T10:13:01Z - link to updated analysis |
|
Kusari PR Analysis rerun based on - f946fc3 performed at: 2025-07-18T10:10:17Z - link to updated analysis |
7de2874 to
a66ed42
Compare
|
Kusari PR Analysis rerun based on - a66ed42 performed at: 2025-07-18T10:29:26Z - link to updated analysis |
a66ed42 to
bfccefa
Compare
|
Kusari PR Analysis rerun based on - bfccefa performed at: 2025-07-18T10:33:06Z - link to updated analysis |
|
Kusari PR Analysis rerun based on - 7de2874 performed at: 2025-07-18T10:25:57Z - link to updated analysis |
refactor v0.1/v0.2 slsa predicates with new attestation protos. update parser to use new protobuf types and timestamp handling fix tests and remove obsolete fields from test data Signed-off-by: Paul Joseph <[email protected]>
bfccefa to
f780169
Compare
|
Kusari PR Analysis rerun based on - f780169 performed at: 2025-09-04T03:38:14Z - link to updated analysis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the new interface is a bit counter-intuitive coming from the old in-toto-golang, but we are removing the statement layer (I'm surprised the tests didn't explode)
| Recipe: slsa01.ProvenanceRecipe{ | ||
| Type: "test", | ||
| }, | ||
| stmt: &slsa01.Provenance{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is sticking the provenance predicate at the statement layer. Instead, this should be using in-toto/attestation/go/v1/statement and adding slsa01.Provenance as the predicate
| expectedFinishTime := time.Unix(test.args.stmt.Metadata.BuildFinishedOn.GetSeconds(), int64(test.args.stmt.Metadata.BuildFinishedOn.GetNanos())) | ||
| if test.args.inp.FinishedOn != nil && !test.args.inp.FinishedOn.Equal(expectedFinishTime) { | ||
| t.Errorf("fillSLSA01() inp.FinishedOn not equal to expected time") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to restore the nesting based on the comment above. It should also check for the subject field
|
This pull request has been automatically marked as stale because it has not had recent activity (60 days of inactivity). |
Description of the PR
PR Checklist
-sflag togit commit.make generatehas been runmake generatehas been runmake generatehas been runcollectsubprotobuf has been changed,make protohas been run