From b2fc1237ee1e93e8a898d88516632f2c8ec41f92 Mon Sep 17 00:00:00 2001 From: Paul Cacheux Date: Wed, 4 Dec 2024 10:12:52 +0100 Subject: [PATCH] [CWS] sync yaml usage to v3 in `pkg/security/secl` (#31718) --- pkg/security/secl/go.mod | 1 - pkg/security/secl/go.sum | 2 -- pkg/security/secl/rules/policy.go | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/security/secl/go.mod b/pkg/security/secl/go.mod index 240c0e4adc6a0..d7e796fca2924 100644 --- a/pkg/security/secl/go.mod +++ b/pkg/security/secl/go.mod @@ -21,7 +21,6 @@ require ( golang.org/x/sys v0.27.0 golang.org/x/text v0.20.0 golang.org/x/tools v0.27.0 - gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 modernc.org/mathutil v1.6.0 sigs.k8s.io/yaml v1.4.0 diff --git a/pkg/security/secl/go.sum b/pkg/security/secl/go.sum index 11c7021651ae9..18391dc2e1b6e 100644 --- a/pkg/security/secl/go.sum +++ b/pkg/security/secl/go.sum @@ -105,8 +105,6 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4= diff --git a/pkg/security/secl/rules/policy.go b/pkg/security/secl/rules/policy.go index 6b8dea65a6c35..b6c59fcdb8068 100644 --- a/pkg/security/secl/rules/policy.go +++ b/pkg/security/secl/rules/policy.go @@ -12,7 +12,7 @@ import ( "slices" "github.com/hashicorp/go-multierror" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/DataDog/datadog-agent/pkg/security/secl/validators" )