Update gopkg.in/yaml_v2 to yaml_v3

Previous version was vulnerable to CVE-2022-28948

Signed-off-by: Ben Reedy <breed808@breed808.com>
This commit is contained in:
Ben Reedy
2022-05-29 10:44:34 +10:00
parent 7f69cc0acf
commit 5f9759586e
4 changed files with 5 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ import (
"github.com/prometheus-community/windows_exporter/log"
"gopkg.in/alecthomas/kingpin.v2"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)
type getFlagger interface {

View File

@@ -1,7 +1,7 @@
package config
import (
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
"reflect"
"testing"
)