From 52c2c002c6e14bbe11b24e2bb3c53ced07c680e8 Mon Sep 17 00:00:00 2001 From: Binbin Li Date: Tue, 31 Oct 2023 01:58:25 +0800 Subject: [PATCH] docs: update notation tsg doc link (#1152) Signed-off-by: Binbin Li --- errors/errors.go | 2 +- pkg/verifier/notation/notation.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/errors/errors.go b/errors/errors.go index 186373f6b..2e6c7fc9f 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -16,7 +16,7 @@ limitations under the License. package errors const ( - NotationSpecLink = "https://github.com/notaryproject/notaryproject/tree/main/specs" + NotationTsgLink = "https://ratify.dev/docs/1.0/troubleshoot/verifier/notation" OrasLink = "https://oras.land/" AuthProviderLink = "https://ratify.dev/docs/1.0/reference/oras-auth-provider" PolicyProviderLink = "https://ratify.dev/docs/1.0/reference/providers" diff --git a/pkg/verifier/notation/notation.go b/pkg/verifier/notation/notation.go index 6d5936f0c..c35ccd4fd 100644 --- a/pkg/verifier/notation/notation.go +++ b/pkg/verifier/notation/notation.go @@ -136,7 +136,7 @@ func (v *notationPluginVerifier) Verify(ctx context.Context, subjectRef := fmt.Sprintf("%s@%s", subjectReference.Path, subjectReference.Digest.String()) outcome, err := v.verifySignature(ctx, subjectRef, blobDesc.MediaType, subjectDesc.Descriptor, refBlob) if err != nil { - return verifier.VerifierResult{IsSuccess: false, Extensions: extensions}, re.ErrorCodeVerifyPluginFailure.NewError(re.Verifier, verifierName, re.NotationSpecLink, err, "failed to verify signature of digest", re.HideStackTrace) + return verifier.VerifierResult{IsSuccess: false, Extensions: extensions}, re.ErrorCodeVerifyPluginFailure.NewError(re.Verifier, verifierName, re.NotationTsgLink, err, "failed to verify signature of digest", re.HideStackTrace) } // Note: notation verifier already validates certificate chain is not empty.