Skip to content

Commit

Permalink
feat: support notation-go logs (ratify-project#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin-li authored Oct 20, 2023
1 parent e18f99c commit 9137a1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/verifier/notation/notation.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

ratifyconfig "github.com/deislabs/ratify/config"
re "github.com/deislabs/ratify/errors"
"github.com/deislabs/ratify/internal/logger"
"github.com/deislabs/ratify/pkg/common"
"github.com/deislabs/ratify/pkg/homedir"

Expand All @@ -32,6 +33,7 @@ import (
"github.com/deislabs/ratify/pkg/verifier"
"github.com/deislabs/ratify/pkg/verifier/config"
"github.com/deislabs/ratify/pkg/verifier/factory"
"github.com/notaryproject/notation-go/log"

_ "github.com/notaryproject/notation-core-go/signature/cose" // register COSE signature
_ "github.com/notaryproject/notation-core-go/signature/jws" // register JWS signature
Expand Down Expand Up @@ -163,6 +165,7 @@ func (v *notationPluginVerifier) verifySignature(ctx context.Context, subjectRef
SignatureMediaType: mediaType,
ArtifactReference: subjectRef,
}
ctx = log.WithLogger(ctx, logger.GetLogger(ctx, logOpt))

return (*v.notationVerifier).Verify(ctx, subjectDesc, refBlob, opts)
}
Expand Down

0 comments on commit 9137a1c

Please sign in to comment.