Skip to content

Commit

Permalink
Address G401 findings
Browse files Browse the repository at this point in the history
  • Loading branch information
petersutter committed Oct 25, 2024
1 parent 74e98e5 commit 8125ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/target/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func (m *managerImpl) WriteClientConfig(config clientcmd.ClientConfig) (string,
return "", fmt.Errorf("failed to serialize temporary kubeconfig file: %w", err)
}

filename := filepath.Join(m.sessionDirectory, fmt.Sprintf("kubeconfig.%x.yaml", md5.Sum(data)))
filename := filepath.Join(m.sessionDirectory, fmt.Sprintf("kubeconfig.%x.yaml", md5.Sum(data))) // #nosec G401 -- No cryptographic context.

err = os.WriteFile(filename, data, 0o600)
if err != nil {
Expand Down

0 comments on commit 8125ba6

Please sign in to comment.