Skip to content

Commit 8696935

Browse files
committed
fix: restore skiptlsverify flag
1 parent d7afe72 commit 8696935

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/scanner/inline_adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (i *inlineAdapter) buildJob(name string, req harbor.ScanRequest) *batchv1.J
129129
ValueFrom: nil,
130130
})
131131
envVars = appendLocalEnvVar(envVars, "NO_PROXY")
132-
cmdString := fmt.Sprintf("/home/nonroot/sysdig-cli-scanner -a %s --console-log --output-json=output.json ", i.secureURL)
132+
cmdString := fmt.Sprintf("/home/nonroot/sysdig-cli-scanner -a %s --console-log --skiptlsverify --output-json=output.json ", i.secureURL)
133133
// Add skiptlsverify if insecure
134134
if !i.verifySSL {
135135
cmdString += "--skiptlsverify "

pkg/scanner/inline_adapter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func job() *batchv1.Job {
233233
Command: []string{"/busybox/sh"},
234234
Args: []string{
235235
"-c",
236-
"/home/nonroot/sysdig-cli-scanner -a https://secure.sysdig.com --console-log --output-json=output.json pull://harbor.sysdig-demo.zone/sysdig/agent:9.7.0@an image digest; RC=$?; if [ $RC -eq 1 ]; then exit 0; else exit $RC; fi",
236+
"/home/nonroot/sysdig-cli-scanner -a https://secure.sysdig.com --console-log --skiptlsverify --output-json=output.json pull://harbor.sysdig-demo.zone/sysdig/agent:9.7.0@an image digest; RC=$?; if [ $RC -eq 1 ]; then exit 0; else exit $RC; fi",
237237
},
238238
Env: []corev1.EnvVar{
239239
{

0 commit comments

Comments
 (0)