You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor:
- move the verify command output related logic to be `VerifyHandler`
Example:
```sh
notation verify notationreg.azurecr.io/hello-world:v1
Warning: Always verify the artifact using digest(@sha256:...) rather than a tag(:v1) because resolved digest may not point to the same signed artifact, as tags are mutable.
Successfully verified signature for notationreg.azurecr.io/hello-world@sha256:d37ada95d47ad12224c205a938129df7a3e52345828b4fa27b03a98825d1e2e7
The artifact was signed with the following user metadata.
KEY VALUE
foo bar
```
Resolve part of notaryproject#1151
---------
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
h.printer.PrintErrorf("Warning: Always verify the artifact using digest(@sha256:...) rather than a tag(:%s) because resolved digest may not point to the same signed artifact, as tags are mutable.\n", reference)
49
+
h.hasWarning=true
50
+
}
51
+
52
+
// OnVerifySucceeded sets the successful verification result for the handler.
0 commit comments