forked from sigstore/sigstore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cliplugin: semver, add tests for hash func encoding (sigstore#1948)
Adds tests against know hash func and their JSON encoding. The current set of hash funcs and their encoding has not changed in ~8 years, but they might change in the future, since they are ordered by iota. https://cs.opensource.google/go/go/+/refs/tags/go1.23.5:src/crypto/crypto.go;l=68-89;bpv=0 This PR adds a test that can give us a warning if and when they do change, and we would likely need a major version bump of the protocol version. adds semver to the plugin protocol version at "v1". Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
- Loading branch information
1 parent
c5b7d21
commit 67bd820
Showing
3 changed files
with
114 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters