From 80b4cec23a2a489695aaf609ffeea39f3f836c9e Mon Sep 17 00:00:00 2001 From: Ramon Petgrave Date: Tue, 25 Jun 2024 23:08:57 +0000 Subject: [PATCH] typo Signed-off-by: Ramon Petgrave --- verifiers/internal/vsa/verifier_test.go | 4 ++-- verifiers/utils/dsse.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/verifiers/internal/vsa/verifier_test.go b/verifiers/internal/vsa/verifier_test.go index 1d6efe8..1dac34e 100644 --- a/verifiers/internal/vsa/verifier_test.go +++ b/verifiers/internal/vsa/verifier_test.go @@ -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{ { diff --git a/verifiers/utils/dsse.go b/verifiers/utils/dsse.go index 4fd1e0e..8ff226a 100644 --- a/verifiers/utils/dsse.go +++ b/verifiers/utils/dsse.go @@ -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