-
Notifications
You must be signed in to change notification settings - Fork 179
Closed
Labels
bugBugsBugs
Description
🐞 Bug report
Describe the bug
secureCodeBox/semgrep gives 'failed to download" error when I install, in this case I installed through scanners/semgrep via repository (helm -f value.yaml ...) . Next, I used scanners/semgrep/example/vulnerable-flask-app/scan.yaml to generate a scan but got the error message 'error: error validating "scan.yaml": error validating data: ValidationError (Scan.spec): unknown field "initContainers" in io.securecodebox.execution.v1.Scan.spec; if you choose to ignore these errors, turn validation off with --validate=false'
Steps To Reproduce
- Upgrade secureCodeBox
helm --namespace securecodebox-system upgrade --install securecodebox-operator secureCodeBox/operator - Install Semgrep scanner (Error: failed to download "secureCodeBox/semgrep")
helm upgrade --install semgrep secureCodeBox/semgrep -n securecodebox-system - Install Semgrep scanner with source
git clone https://github.com/secureCodeBox/secureCodeBox.git
cd secureCodeBox/scanners/semgrep
helm upgrade --install -f values.yaml semgrep . -n securecodebox-system - Create scan (Error: unknown field "initContainers" in io.securecodebox.execution.v1.Scan.spec)
cd scanners/semgrep/examples/vulnerable-flask-app
kubectl apply -f scan.yaml
Expected behavior
How can I install semgrep scanner and make a scan with semgrep type working properly?
System (please complete the following information):
- secureCodeBox:
2021-10-28 11:54:04.600105 +0700 +07 deployed operator-3.1.1 - helm:
version.BuildInfo{Version:"v3.7.0", GitTreeState:"clean", GoVersion:"go1.17"} - kubectl:
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5", BuildDate:"2020-07-04T15:01:15Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"19+", GitVersion:"v1.19.13-gke.1900", BuildDate:"2021-08-11T09:19:42Z", GoVersion:"go1.15.13b5", Compiler:"gc", Platform:"linux/amd64"}
Screenshots / Logs
Additional context
I have seen the instructions and followed 2 ways but none of them work

