Chore: Implement gosec (#16261)

See https://github.com/securego/gosec for more info.

Disabled a lot of rules. I guess we should go through them
and recheck if we really need to disable some

Fixes #16204
This commit is contained in:
Oleg Gaidarenko
2019-03-28 14:17:07 +01:00
committed by GitHub
parent ad939b0583
commit 1d955a8762
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import (
)
const (
tokenUrl string = "https://www.googleapis.com/auth/devstorage.read_write"
tokenUrl string = "https://www.googleapis.com/auth/devstorage.read_write" // #nosec
uploadUrl string = "https://www.googleapis.com/upload/storage/v1/b/%s/o?uploadType=media&name=%s&predefinedAcl=publicRead"
)