Skip to content

Commit

Permalink
Use k8s yaml rather than go-yaml (#1215)
Browse files Browse the repository at this point in the history
Address vulnerability GO-2021-0061 and GO-2020-0036
  • Loading branch information
waciumawanjohi authored Mar 24, 2023
1 parent 9fb2626 commit 1978912
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go 1.19
require (
github.com/MakeNowJust/heredoc v1.0.0
github.com/go-logr/logr v1.2.3
github.com/go-yaml/yaml v2.1.0+incompatible
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.24.1
github.com/valyala/fasttemplate v1.2.2
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/
github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
github.com/go-yaml/yaml v2.1.0+incompatible h1:RYi2hDdss1u4YE7GwixGzWwVo47T8UQwnTLB6vQiq+o=
github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0=
github.com/gobuffalo/flect v0.3.0 h1:erfPWM+K1rFNIQeRPdeEXxo8yFr/PO17lhRnS8FUrtk=
github.com/gobuffalo/flect v0.3.0/go.mod h1:5pf3aGnsvqvCj50AVni7mJJF8ICxGZ8HomberC3pXLE=
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/kubeconfigrestricted.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package utils
import (
"fmt"

"github.com/go-yaml/yaml"
clientcmd "k8s.io/client-go/tools/clientcmd/api/v1"
"sigs.k8s.io/yaml"
)

type KubeconfigRestricted struct {
Expand Down

0 comments on commit 1978912

Please sign in to comment.