Disable false positive gas warning
This commit is contained in:
Родитель
03f7e1f5d6
Коммит
66c303559c
|
@ -30,7 +30,7 @@ func buildHTTPClient() *http.Client {
|
|||
}
|
||||
|
||||
func loadBasicAuth(authFile string) (*basicAuth, error) {
|
||||
file, err := ioutil.ReadFile(authFile)
|
||||
file, err := ioutil.ReadFile(authFile) // #nosec
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf(`Failed to read the basic authentication
|
||||
credentials from the file: %v`, err)
|
||||
|
|
|
@ -50,7 +50,7 @@ func buildHTTPClient() *http.Client {
|
|||
}
|
||||
|
||||
func loadBasicAuth(authFile string) (*BasicAuth, error) {
|
||||
file, err := ioutil.ReadFile(authFile)
|
||||
file, err := ioutil.ReadFile(authFile) // #nosec
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf(`Failed to read the basic authentication
|
||||
credentials from the file: %v`, err)
|
||||
|
|
|
@ -55,7 +55,7 @@ func buildHTTPClient() *http.Client {
|
|||
}
|
||||
|
||||
func loadBasicAuth(authFile string) (*BasicAuth, error) {
|
||||
file, err := ioutil.ReadFile(authFile)
|
||||
file, err := ioutil.ReadFile(authFile) // #nosec
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf(`Failed to read the basic authentication
|
||||
credentials from the file: %v`, err)
|
||||
|
|
Загрузка…
Ссылка в новой задаче