The verify action would fail if user verify with the same truststore dir more than one time. It would fail at the second verification. This is because, notation cert add would fail if cert already exists.
The fix is cleaning up notation/truststore per verify. We do this because every verify is independent of each other, and notation/truststore actually serves as a snapshot of the user input truststore dir. As long as the user set their truststore following notation's spec, the verify should work.
The
verify
action would fail if user verify with the same truststore dirmore than one time
. It would fail at the second verification. This is because,notation cert add
would fail if cert already exists.The fix is cleaning up
notation/truststore
per verify. We do this because every verify is independent of each other, and notation/truststore actually serves as a snapshot of the user input truststore dir. As long as the user set their truststore following notation's spec, the verify should work.