Skip to content

Commit

Permalink
feat: cosign verifier unit tests 2
Browse files Browse the repository at this point in the history
Signed-off-by: Juncheng Zhu <[email protected]>
  • Loading branch information
junczhu committed Feb 13, 2025
1 parent 9157222 commit dce27bf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cosign/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ require (
github.com/ratify-project/ratify-go v0.0.0-20250121002110-2815af359901
github.com/sigstore/cosign/v2 v2.2.4
github.com/sigstore/sigstore v1.8.3
github.com/stretchr/testify v1.9.0
oras.land/oras-go/v2 v2.5.0
)

Expand All @@ -15,6 +16,7 @@ require (
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect
github.com/cyberphone/json-canonicalization v0.0.0-20231011164504-785e29786b46 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352 // indirect
github.com/digitorus/timestamp v0.0.0-20231217203849-220c5c2851b7 // indirect
github.com/docker/cli v24.0.7+incompatible // indirect
Expand Down Expand Up @@ -57,6 +59,7 @@ require (
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sassoftware/relic v7.2.1+incompatible // indirect
Expand Down
15 changes: 15 additions & 0 deletions cosign/verifier.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*

Check failure on line 1 in cosign/verifier.go

View workflow job for this annotation

GitHub Actions / Analyze (1.22)

ASCII text, with CRLF line terminators

Check failure on line 1 in cosign/verifier.go

View workflow job for this annotation

GitHub Actions / build (1.22)

ASCII text, with CRLF line terminators

Check failure on line 1 in cosign/verifier.go

View workflow job for this annotation

GitHub Actions / Analyze (1.23)

ASCII text, with CRLF line terminators
Copyright The Ratify Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package cosign

import (
Expand Down
15 changes: 15 additions & 0 deletions cosign/verifier_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
Copyright The Ratify Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package cosign

import (
Expand Down

0 comments on commit dce27bf

Please sign in to comment.