@aspidasec/autofix
v0.1.0
Published
Autofix runner for AspidaSec scan findings
Readme
@aspidasec/autofix
Automated fix runner for AspidaSec scan findings. It collects FixCommand entries from normalized findings, deduplicates identical commands, supports dry-run previews, and skips breaking fixes unless explicitly enabled.
Installation
pnpm add @aspidasec/autofixUsage
import { AutofixRunner } from "@aspidasec/autofix";
const runner = new AutofixRunner({ dryRun: true });
const report = await runner.run(findings);
console.log(report.fixableFindings, report.results);From the AspidaSec CLI:
aspidasec autofixAPI
AutofixRunner— executes uniquefixCommandsfrom findings and returns anAutofixReport.AutofixRunnerOptions— constructor options:dryRunpreviews commands without execution,includeBreakingallows commands marked as breaking.AutofixReport— aggregate result with total, fixable, applied, failed, skipped counts, per-command results, andgeneratedAt.AutofixResult— per-command status:success,failed,skipped, ordry-run, plus output/error details.
License
Apache-2.0
