From ffc2c0d7f457b4397c4ab3b92e58cd2ce0ac52a2 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 16 Aug 2019 23:10:17 +0200 Subject: [PATCH] Thanks for the warning gosec but this is by intention Signed-off-by: Knut Ahlers --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8551714..83e6abc 100644 --- a/main.go +++ b/main.go @@ -69,7 +69,7 @@ func main() { } func sriIntegrity(url string) (string, error) { - resp, err := http.Get(url) + resp, err := http.Get(url) //#nosec G107 -- The while intention of this tool is to download files if err != nil { return "", errors.Wrap(err, "Unable to get URL contents") }