Files
agentguard-ci/helm/templates/_scan-semgrep.yaml
T
2026-04-20 18:06:58 -06:00

20 lines
511 B
YAML

{{- define "template.scan-semgrep" -}}
- name: scan-semgrep
inputs:
parameters:
- name: working-dir
container:
image: {{ .Values.images.semgrep | quote }}
command:
- sh
- -c
args:
- |
set -eu
mkdir -p /workspace/reports
semgrep scan --config auto --sarif --output /workspace/reports/semgrep.sarif "/workspace/{{ `{{inputs.parameters.working-dir}}` }}" || true
volumeMounts:
- name: workspace
mountPath: /workspace
{{- end }}