mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-16 13:36:33 +00:00
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
intotoAttestattions "github.com/in-toto/attestation/go/v1"
|
||||
intotoAttestations "github.com/in-toto/attestation/go/v1"
|
||||
intotoGolang "github.com/in-toto/in-toto-golang/in_toto"
|
||||
intotoCommon "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common"
|
||||
"github.com/secure-systems-lab/go-securesystemslib/dsse"
|
||||
@@ -76,7 +76,7 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEeGa6ZCZn0q6WpaUwJrSk+PPYEsca
|
||||
}
|
||||
goodVSA := &vsa10.VSA{
|
||||
StatementHeader: intotoGolang.StatementHeader{
|
||||
Type: intotoAttestattions.StatementTypeUri,
|
||||
Type: intotoAttestations.StatementTypeUri,
|
||||
PredicateType: vsa10.PredicateType,
|
||||
Subject: []intotoGolang.Subject{
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"fmt"
|
||||
"math/big"
|
||||
|
||||
intotoAttestattions "github.com/in-toto/attestation/go/v1"
|
||||
intotoAttestations "github.com/in-toto/attestation/go/v1"
|
||||
intoto "github.com/in-toto/in-toto-golang/in_toto"
|
||||
dsselib "github.com/secure-systems-lab/go-securesystemslib/dsse"
|
||||
serrors "github.com/slsa-framework/slsa-verifier/v2/errors"
|
||||
@@ -53,7 +53,7 @@ func StatementFromBytes(payload []byte) (*intoto.Statement, error) {
|
||||
return nil, fmt.Errorf("%w: %w", serrors.ErrorInvalidDssePayload, err)
|
||||
}
|
||||
|
||||
if statement.Type != intoto.StatementInTotoV01 && statement.Type != intotoAttestattions.StatementTypeUri {
|
||||
if statement.Type != intoto.StatementInTotoV01 && statement.Type != intotoAttestations.StatementTypeUri {
|
||||
return nil, fmt.Errorf("%w: invalid statement type: %q", serrors.ErrorInvalidDssePayload, statement.Type)
|
||||
}
|
||||
return &statement, nil
|
||||
|
||||
Reference in New Issue
Block a user