Skip to content

Commit fc0c8ea

Browse files
committed
Bump cosign sdk from v2 to v3
Signed-off-by: leigh capili <leigh@null.net>
1 parent 13b8fb8 commit fc0c8ea

8 files changed

Lines changed: 405 additions & 401 deletions

File tree

go.mod

Lines changed: 110 additions & 103 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 280 additions & 284 deletions
Large diffs are not rendered by default.

internal/controller/helmchart_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/google/go-containerregistry/pkg/v1/remote"
3232
"github.com/notaryproject/notation-go/verifier/trustpolicy"
3333
"github.com/opencontainers/go-digest"
34-
"github.com/sigstore/cosign/v2/pkg/cosign"
34+
"github.com/sigstore/cosign/v3/pkg/cosign"
3535
helmgetter "helm.sh/helm/v4/pkg/getter"
3636
helmreg "helm.sh/helm/v4/pkg/registry"
3737
helmrepo "helm.sh/helm/v4/pkg/repo/v1"

internal/controller/helmchart_controller_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ import (
4343
"github.com/notaryproject/notation-go/signer"
4444
"github.com/notaryproject/notation-go/verifier/trustpolicy"
4545
. "github.com/onsi/gomega"
46-
coptions "github.com/sigstore/cosign/v2/cmd/cosign/cli/options"
47-
"github.com/sigstore/cosign/v2/cmd/cosign/cli/sign"
48-
"github.com/sigstore/cosign/v2/pkg/cosign"
46+
coptions "github.com/sigstore/cosign/v3/cmd/cosign/cli/options"
47+
"github.com/sigstore/cosign/v3/cmd/cosign/cli/sign"
48+
"github.com/sigstore/cosign/v3/pkg/cosign"
4949
hchart "helm.sh/helm/v4/pkg/chart/v2"
5050
"helm.sh/helm/v4/pkg/chart/v2/loader"
5151
helmreg "helm.sh/helm/v4/pkg/registry"

internal/controller/ocirepository_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
gcrv1 "github.com/google/go-containerregistry/pkg/v1"
4040
"github.com/google/go-containerregistry/pkg/v1/remote"
4141
"github.com/notaryproject/notation-go/verifier/trustpolicy"
42-
"github.com/sigstore/cosign/v2/pkg/cosign"
42+
"github.com/sigstore/cosign/v3/pkg/cosign"
4343
corev1 "k8s.io/api/core/v1"
4444
"k8s.io/apimachinery/pkg/runtime"
4545
"k8s.io/apimachinery/pkg/types"

internal/controller/ocirepository_controller_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ import (
4444
"github.com/notaryproject/notation-go/verifier/trustpolicy"
4545
. "github.com/onsi/gomega"
4646
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
47-
coptions "github.com/sigstore/cosign/v2/cmd/cosign/cli/options"
48-
"github.com/sigstore/cosign/v2/cmd/cosign/cli/sign"
49-
"github.com/sigstore/cosign/v2/pkg/cosign"
47+
coptions "github.com/sigstore/cosign/v3/cmd/cosign/cli/options"
48+
"github.com/sigstore/cosign/v3/cmd/cosign/cli/sign"
49+
"github.com/sigstore/cosign/v3/pkg/cosign"
5050
corev1 "k8s.io/api/core/v1"
5151
apierrors "k8s.io/apimachinery/pkg/api/errors"
5252
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

internal/oci/cosign/cosign.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ import (
2323

2424
"github.com/google/go-containerregistry/pkg/name"
2525
"github.com/google/go-containerregistry/pkg/v1/remote"
26-
"github.com/sigstore/cosign/v2/cmd/cosign/cli/fulcio"
27-
coptions "github.com/sigstore/cosign/v2/cmd/cosign/cli/options"
28-
"github.com/sigstore/cosign/v2/cmd/cosign/cli/rekor"
29-
"github.com/sigstore/cosign/v2/pkg/cosign"
30-
ociremote "github.com/sigstore/cosign/v2/pkg/oci/remote"
26+
"github.com/sigstore/cosign/v3/cmd/cosign/cli/fulcio"
27+
coptions "github.com/sigstore/cosign/v3/cmd/cosign/cli/options"
28+
"github.com/sigstore/cosign/v3/cmd/cosign/cli/rekor"
29+
"github.com/sigstore/cosign/v3/pkg/cosign"
30+
31+
ociremote "github.com/sigstore/cosign/v3/pkg/oci/remote"
3132
"github.com/sigstore/sigstore/pkg/cryptoutils"
3233
"github.com/sigstore/sigstore/pkg/signature"
3334

internal/oci/cosign/cosign_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/google/go-containerregistry/pkg/name"
2929
"github.com/google/go-containerregistry/pkg/v1/remote"
3030
. "github.com/onsi/gomega"
31-
"github.com/sigstore/cosign/v2/pkg/cosign"
31+
"github.com/sigstore/cosign/v3/pkg/cosign"
3232

3333
testproxy "github.com/fluxcd/source-controller/tests/proxy"
3434
testregistry "github.com/fluxcd/source-controller/tests/registry"

0 commit comments

Comments
 (0)