-
Notifications
You must be signed in to change notification settings - Fork 39
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
Verify command returns the parsed timestamp #174
Verify command returns the parsed timestamp #174
Conversation
Signed-off-by: Meredith Lancaster <[email protected]>
Signed-off-by: Meredith Lancaster <[email protected]>
Signed-off-by: Meredith Lancaster <[email protected]>
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.
Nice!
pkg/verification/verify.go
Outdated
} | ||
return fmt.Errorf("error parsing response into Timestamp: %w", err) | ||
return nil, fmt.Errorf("error parsing response into Timestamp: %w", err) | ||
} | ||
|
||
// verify the timestamp response signature using the provided certificate pool | ||
err = verifyTSRWithChain(ts, opts) |
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.
nit for readability, can you change these to be:
if err := func(); err != nil {
return nil, err
}
Signed-off-by: Meredith Lancaster <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #174 +/- ##
==========================================
- Coverage 48.17% 48.03% -0.14%
==========================================
Files 18 18
Lines 1067 1068 +1
==========================================
- Hits 514 513 -1
- Misses 495 497 +2
Partials 58 58
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Meredith Lancaster [email protected]
Summary
Closes #169
The
verify
CLI command now returns the parsed timestamp when verification is successful.Release Note
Documentation