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

21 lines
597 B
YAML

{{- define "template.scan-syft-grype" -}}
- name: scan-syft-grype
inputs:
parameters:
- name: working-dir
container:
image: {{ .Values.images.syftGrype | quote }}
command:
- sh
- -c
args:
- |
set -eu
mkdir -p /workspace/reports
syft scan dir:/workspace/{{ `{{inputs.parameters.working-dir}}` }} -o cyclonedx-json=/workspace/reports/sbom.json || true
grype sbom:/workspace/reports/sbom.json -o sarif=/workspace/reports/grype.sarif || true
volumeMounts:
- name: workspace
mountPath: /workspace
{{- end }}