diff --git a/pkg/attestation/scorecard/scorecard.go b/pkg/attestation/scorecard/scorecard.go index e2d11334..247aef53 100644 --- a/pkg/attestation/scorecard/scorecard.go +++ b/pkg/attestation/scorecard/scorecard.go @@ -108,7 +108,7 @@ func (a *Attestor) getCanidate(ctx *attestation.AttestationContext) error { return fmt.Errorf("error reading file: %s", path) } - //check to see if we can unmarshal into sarif type + //check to see if we can unmarshal into scorecard type if err := json.Unmarshal(reportBytes, &a.Scorecard); err != nil { fmt.Printf("error unmarshaling report: %s\n", err) continue @@ -119,7 +119,7 @@ func (a *Attestor) getCanidate(ctx *attestation.AttestationContext) error { return nil } - return fmt.Errorf("no sarif file found") + return fmt.Errorf("no scorecard file found") } func (a *Attestor) Subjects() map[string]cryptoutil.DigestSet { diff --git a/pkg/attestors.go b/pkg/attestors.go index c742e1cf..30e4510e 100644 --- a/pkg/attestors.go +++ b/pkg/attestors.go @@ -25,4 +25,6 @@ import ( _ "github.com/testifysec/witness/pkg/attestation/jwt" _ "github.com/testifysec/witness/pkg/attestation/maven" _ "github.com/testifysec/witness/pkg/attestation/oci" + _ "github.com/testifysec/witness/pkg/attestation/sarif" + _ "github.com/testifysec/witness/pkg/attestation/scorecard" )