1012 B
1012 B
Implementation Plan: KICS IaC Scanner
Objective
Implement the KICS (Keeping Infrastructure as Code Secure) scanning step as a parallel task in the DAG.
Requirements
- Define a task template named
scan-kics. - Depend on the
clone-repotask. - Mount the shared PVC at
/workspace. - Run KICS against the
/workspacedirectory (or the specificworking-dirparameter). - Output findings in SARIF and/or JSON format.
- Save the output to
/workspace/reports/kics.sarif. - Ensure the task exits successfully even if issues are found, to allow Phase 3 aggregation (e.g., wrap with
|| true).
Agent Instructions
- Add the
scan-kicstemplate to theClusterWorkflowTemplate. - Wire it into the DAG alongside the other scanners.
- CRITICAL: File Splitting: Do NOT put everything into one giant file! Split your YAML manifests or configurations into separate, smaller files (e.g. using separate Helm template files, configmaps, or helper scripts) to prevent exhausting the context window.