notaryproject / notation

A CLI tool to sign and verify artifacts
https://notaryproject.dev/
Apache License 2.0
306 stars 84 forks source link

feat: add inspect blob commands #888

Open rrsemlani opened 4 months ago

rrsemlani commented 4 months ago

Adding inspect blob commands. Spec Pr used for ref: https://github.com/notaryproject/notation/pull/811

priteshbandi commented 4 months ago

Also as per spec we have a new field called signature envelope type. Please add support for it in both oci and blob inspect command.

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 68.68132% with 57 lines in your changes are missing coverage. Please review.

Project coverage is 71.05%. Comparing base (eaa5fb4) to head (3ee161f). Report is 29 commits behind head on main.

Files Patch % Lines
cmd/notation/internal/outputs/inspect.go 70.53% 23 Missing and 10 partials :warning:
cmd/notation/blob/inspect.go 47.50% 21 Missing :warning:
cmd/notation/internal/osutil/read.go 86.66% 1 Missing and 1 partial :warning:
cmd/notation/inspect.go 80.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #888 +/- ## ========================================== + Coverage 64.93% 71.05% +6.12% ========================================== Files 45 49 +4 Lines 2729 2246 -483 ========================================== - Hits 1772 1596 -176 + Misses 795 453 -342 - Partials 162 197 +35 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.