Browse Source

Add `gosec` exclusion in `termutil` package

Herman Slatman 9 months ago
parent
commit
8e83ed1a58
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ca/client.go

+ 1 - 1
ca/client.go

@@ -422,7 +422,7 @@ func WithTimeout(d time.Duration) ClientOption {
 }
 }
 
 
 func getTransportFromFile(filename string) (http.RoundTripper, error) {
 func getTransportFromFile(filename string) (http.RoundTripper, error) {
-	data, err := os.ReadFile(filename)
+	data, err := os.ReadFile(filename) // #nosec G703 -- filename is based on configuration; data read from file is processed with expected format
 	if err != nil {
 	if err != nil {
 		return nil, errors.Wrapf(err, "error reading %s", filename)
 		return nil, errors.Wrapf(err, "error reading %s", filename)
 	}
 	}