10BC0 disable lint g204 for appProtectLogLevelCmdfull since input argument … · nginx/kubernetes-ingress@c04e002 · GitHub
[go: up one dir, main page]

Skip to content

Commit c04e002

Browse files
authorgalitskiy
committed
disable lint g204 for appProtectLogLevelCmdfull since input argument already velidated
1 parent 22e257d commit c04e002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/nginx/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ func (lm *LocalManager) SetOpenTracing(openTracing bool) {
459459
func (lm *LocalManager) AppProtectAgentStart(apaDone chan error, logLevel string) {
460460
glog.V(3).Info("Setting log level for App Protect - ", logLevel)
461461
appProtectLogLevelCmdfull := fmt.Sprintf("%v %v", appProtectLogLevelCmd, logLevel)
462-
logLevelCmd := exec.Command("sh", "-c", appProtectLogLevelCmdfull)
462+
logLevelCmd := exec.Command("sh", "-c", appProtectLogLevelCmdfull) // #nosec G204
463463
if err := logLevelCmd.Run(); err != nil {
464464
glog.Fatalf("Failed to set log level for AppProtect: %v", err)
465465
}

0 commit comments

Comments
 (0)
0