golangci-lint: The parameters passed to exec.Command are safe
None of these parameters are user controlled, they are either constructed from paths or are constants.
This commit is contained in:
parent
29fb97f3d6
commit
dfb69dc8e7
2 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ func newSelfSignedCertificateKeyPair(subj string) (*certificateKeyPair, error) {
|
|||
|
||||
ckp := certificateKeyPair{baseDir: dir}
|
||||
|
||||
//nolint:gosec
|
||||
cmd := exec.Command(
|
||||
"openssl", "req", "-nodes", "-x509",
|
||||
"-subj", subj,
|
||||
|
|
@ -115,6 +116,7 @@ func newCA(subj string) (*ca, error) {
|
|||
BaseDir: baseDir,
|
||||
}
|
||||
|
||||
//nolint:gosec
|
||||
cmd := exec.Command(
|
||||
"openssl", "req",
|
||||
"-config", opensslConfig,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue