Class ExportStage
java.lang.Object
com.tnsai.quality.security.harness.ExportStage
- All Implemented Interfaces:
PipelineStage
The
export stage (TNS-291). Reads every ReviewFinding
from the state store and serialises it to one of ExportFormat.
Output goes to reports/findings.<ext> via
PipelineStateStore.writeReport(String, byte[]). The ext
is derived from the format (.sarif, .json,
.md). For multiple-format runs, register multiple
ExportStage instances each with a different format.
- Since:
- 0.10.0 (TNS-291)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(PipelineContext ctx) Execute the stage.id()Stable id, e.g.
-
Constructor Details
-
ExportStage
-
-
Method Details
-
id
Description copied from interface:PipelineStageStable id, e.g."scan","process".- Specified by:
idin interfacePipelineStage
-
execute
Description copied from interface:PipelineStageExecute the stage. Reads from / writes toctx.stateStore().Stages SHOULD respect
Thread.interrupted()— long-running stages (process, revalidate) check periodically so the pipeline can be cancelled cleanly.- Specified by:
executein interfacePipelineStage
-