diff --git a/main.go b/main.go index 19e8d80..df9438e 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ -package git.frostfs.info/alexvanin/vulncheck-example +package vulncheckexample import "fmt" -func NopFunc(){ +func NopFunc() { fmt.Println("Hello World") -} \ No newline at end of file +} diff --git a/unusedvulndep/go.mod b/unusedvulndep/go.mod index ea1194d..bea77f2 100644 --- a/unusedvulndep/go.mod +++ b/unusedvulndep/go.mod @@ -1,3 +1,7 @@ module git.frostfs.info/alexvanin/vulncheck-example/unusedvulndep go 1.22.0 + +require golang.org/x/crypto v0.16.0 + +require golang.org/x/sys v0.15.0 // indirect diff --git a/unusedvulndep/go.sum b/unusedvulndep/go.sum index e69de29..b0d8ac8 100644 --- a/unusedvulndep/go.sum +++ b/unusedvulndep/go.sum @@ -0,0 +1,6 @@ +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= diff --git a/unusedvulndep/module.go b/unusedvulndep/module.go index 97c8975..ec9331d 100644 --- a/unusedvulndep/module.go +++ b/unusedvulndep/module.go @@ -1,7 +1,7 @@ // Unusedvulndep is a package that imports golang.org/x/crypto package // with vulnarability https://pkg.go.dev/vuln/GO-2023-2402 and provides // function that is not affected by vulnarability -package git.frostfs.info/alexvanin/vulncheck-example/unusedvulndep +package unusedvulndep import ( "golang.org/x/crypto/ssh" diff --git a/usedvulndep/go.mod b/usedvulndep/go.mod index 35e8f6e..18ec9cf 100644 --- a/usedvulndep/go.mod +++ b/usedvulndep/go.mod @@ -1,3 +1,7 @@ module git.frostfs.info/alexvanin/vulncheck-example/usedvulndep go 1.22.0 + +require golang.org/x/crypto v0.16.0 + +require golang.org/x/sys v0.15.0 // indirect diff --git a/usedvulndep/go.sum b/usedvulndep/go.sum index e69de29..b0d8ac8 100644 --- a/usedvulndep/go.sum +++ b/usedvulndep/go.sum @@ -0,0 +1,6 @@ +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= diff --git a/usedvulndep/module.go b/usedvulndep/module.go index 3896eed..6029424 100644 --- a/usedvulndep/module.go +++ b/usedvulndep/module.go @@ -1,7 +1,7 @@ // Usedvulndep is a package that imports golang.org/x/crypto package // with vulnarability https://pkg.go.dev/vuln/GO-2023-2402 and provides // function that affected by vulnarability -package git.frostfs.info/alexvanin/vulncheck-example/usedvulndep +package usedvulndep import ( "net"