850 B
850 B
Implementation Plan: TruffleHog Scanner
Objective
Implement the TruffleHog secrets scanning step as a parallel task in the DAG.
Requirements
- Define a task template named
scan-trufflehog. - Depend on the
clone-repotask. - Mount the shared PVC at
/workspace. - Run TruffleHog against the
/workspacedirectory. - Configure TruffleHog to output its findings in JSON or SARIF format.
- Save the output to
/workspace/reports/trufflehog.json(or.sarif). - Ensure the task exits successfully (exit code 0) even if secrets are found, so the pipeline can proceed to the aggregation step (Phase 3). (Use
continueOnorignoreErroror a wrapper script liketrufflehog ... || true).
Agent Instructions
- Add the
scan-trufflehogtemplate to theClusterWorkflowTemplate. - Wire it into the DAG alongside the other scanners.