Skip to content

WIP: Defining an interface for allowing signing and verifying with different envelope types #397

WIP: Defining an interface for allowing signing and verifying with different envelope types

WIP: Defining an interface for allowing signing and verifying with different envelope types #397

Triggered via pull request December 18, 2023 17:36
Status Failure
Total duration 34s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: source/archivista.go#L1
: # github.com/in-toto/go-witness/source
lint: source/source.go#L39
cannot use env.Payload (variable of type string) as type []byte in argument to json.Unmarshal (typecheck)
lint: verify.go#L27
could not import github.com/in-toto/go-witness/source (-: # github.com/in-toto/go-witness/source
lint: source/source.go#L39
cannot use env.Payload (variable of type string) as type []byte in argument to json.Unmarshal) (typecheck)
lint: run.go#L125
cannot use bytes.NewReader(stmtJson) (value of type *bytes.Reader) as []byte value in argument to dsse.Sign (typecheck)
lint: sign.go#L25
cannot use r (variable of type io.Reader) as []byte value in argument to dsse.Sign (typecheck)
lint: verify.go#L84
cannot use vo.policyEnvelope.Payload (variable of type string) as []byte value in argument to json.Unmarshal (typecheck)
lint: signature/envelope/dsse/dsse.go#L1
: # github.com/in-toto/go-witness/signature/envelope/dsse
lint: signature/envelope/dsse/dsse.go#L49
missing function body (typecheck)
lint: cryptoutil/digestset.go#L1
: # github.com/in-toto/go-witness/cryptoutil [github.com/in-toto/go-witness/cryptoutil.test]