Skip to content

Commit e0964ba

Browse files
committed
Add nolint for gosec G204
Signed-off-by: Evan Lezar <[email protected]>
1 parent 656e46c commit e0964ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/hooks/v1/hooks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (h HooksMap) Run(name string, envs EnvsMap, output bool) error {
6666
// It injects the environment variables associated with the provided EnvMap,
6767
// and optionally prints the output for each hook to stdout and stderr.
6868
func (h *HookSpec) Run(envs EnvsMap, output bool) error {
69-
cmd := exec.Command(h.Command, h.Args...)
69+
cmd := exec.Command(h.Command, h.Args...) //nolint:gosec
7070
cmd.Env = h.Envs.Combine(envs).Format()
7171
cmd.Dir = h.Workdir
7272
if output {

cmd/nvidia-mig-parted/util/device.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func nvmlResetAllGPUs() (string, error) {
150150
return "No GPUs to reset...", nil
151151
}
152152

153-
cmd := exec.Command("nvidia-smi", "-r", "-i", strings.Join(pciBusIDs, ","))
153+
cmd := exec.Command("nvidia-smi", "-r", "-i", strings.Join(pciBusIDs, ",")) //nolint:gosec
154154
output, err := cmd.CombinedOutput()
155155
return string(output), err
156156
}

0 commit comments

Comments
 (0)