Skip to content

Commit

Permalink
fix: nosec for G402 issue
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed Dec 19, 2023
1 parent 7607329 commit fda2694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/sinks/alertmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ func (s *AlertmanagerSink) Configure(c Client, config map[string][]byte) error {
}
caCertPool.AppendCertsFromPEM(caCert)
}

// #nosec G402
c.hclient.Transport = &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: insecureSkipVerify, //#nosec G402
InsecureSkipVerify: insecureSkipVerify,
MinVersion: tls.VersionTLS12,
RootCAs: caCertPool,
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (c *helmClient) exec(args []string) error {
sanitizedArgs := sb.String()

fmt.Println("helm " + sanitizedArgs)
cmd := exec.Command(c.helmPath, args...) //#nosec G204
cmd := exec.Command(c.helmPath, args...) // #nosec G204
if c.stdout != nil {
cmd.Stdout = c.stdout
cmd.Stderr = c.stderr
Expand Down

0 comments on commit fda2694

Please sign in to comment.