Skip to content

Commit

Permalink
docs: update notation tsg doc link (ratify-project#1152)
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin Li <[email protected]>
  • Loading branch information
binbin-li authored Oct 30, 2023
1 parent 3061c47 commit 52c2c00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/verifier/notation/notation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 52c2c00

Please sign in to comment.