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:
Brian C. Lane 2022-09-09 10:16:25 -07:00 committed by Brian C. Lane
parent 29fb97f3d6
commit dfb69dc8e7
2 changed files with 4 additions and 0 deletions

View file

@ -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,