diff --git a/go.mod b/go.mod index 43df999..8655d33 100644 --- a/go.mod +++ b/go.mod @@ -7,12 +7,13 @@ require ( github.com/hashicorp/go-multierror v1.1.1 github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf github.com/stretchr/testify v1.7.0 + go.yaml.in/yaml/v3 v3.0.4 gopkg.in/ini.v1 v1.66.2 - gopkg.in/yaml.v3 v3.0.1 ) require ( github.com/davecgh/go-spew v1.1.0 // indirect github.com/hashicorp/errwrap v1.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index d5d04b4..c2f33f4 100644 --- a/go.sum +++ b/go.sum @@ -13,6 +13,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI= diff --git a/pkg/scanner/config.go b/pkg/scanner/config.go index 1071016..6828384 100644 --- a/pkg/scanner/config.go +++ b/pkg/scanner/config.go @@ -4,7 +4,7 @@ import ( "encoding/json" "io" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" "github.com/DefangLabs/secret-detector/pkg/detectors/artifactory" "github.com/DefangLabs/secret-detector/pkg/detectors/aws" diff --git a/pkg/tests/scanner_test.go b/pkg/tests/scanner_test.go index 3188585..5ee84de 100644 --- a/pkg/tests/scanner_test.go +++ b/pkg/tests/scanner_test.go @@ -31,8 +31,8 @@ import ( "github.com/DefangLabs/secret-detector/pkg/scanner" "github.com/DefangLabs/secret-detector/pkg/secrets" "github.com/stretchr/testify/assert" + "go.yaml.in/yaml/v3" "gopkg.in/ini.v1" - "gopkg.in/yaml.v3" ) const ( diff --git a/pkg/transformers/yamltransformer/yaml_transformer.go b/pkg/transformers/yamltransformer/yaml_transformer.go index ce11bd1..759b4c9 100644 --- a/pkg/transformers/yamltransformer/yaml_transformer.go +++ b/pkg/transformers/yamltransformer/yaml_transformer.go @@ -2,7 +2,7 @@ package yamltransformer import ( "github.com/DefangLabs/secret-detector/pkg/dataformat" - "gopkg.in/yaml.v3" + "go.yaml.in/yaml/v3" "github.com/DefangLabs/secret-detector/pkg/secrets" "github.com/DefangLabs/secret-detector/pkg/transformers/helpers"