DocsCommand reference
remediate
List pending findings, mark them done with where the secret went, mark false positives, and export work items.
Try it
SecretSleuth remediate --list
SecretSleuth remediate --mark <id> --target keyvault
SecretSleuth remediate --false-positive <id>
SecretSleuth remediate --export-workitems
How it works
Every finding has a stable ID in the manifest. --list is the source of truth for what is pending. --mark records a finding as remediated, with the target it moved to and the date, which feeds the executive summary’s trend chart.
--false-positive confirms the finding still exists and saves it as FalsePositive without changing the scanned file, including for a finding first seen in a dry run. Later scans exclude that ID from findings, obfuscation and reports. A finding whose file path, key or line number changes gets a new ID and must be reviewed again.
The HTML report’s Mark Done button provides a command to save the selected outcome in the manifest. Run it successfully before using I ran this command to update the open report; reports are snapshots, so generate a new one to see saved status.
See Remediating findings for the full loop.
Options
| Flag | Description |
|---|---|
--list | List pending findings |
--mark <id> | Mark a finding remediated |
--target <t> | Where it went: keyvault, usersecrets, envvar, gitignore, secretmanager |
--false-positive <id> | Mark an incorrect detection |
--export-workitems | Write pending findings as CSV |
--embed-manifest | Use the manifest in the repository root |
--repo <path> | Repository. Default: current folder |
The five --target values and their recognized replacement markers are listed in Remediating findings. A finding first seen in a dry run is not yet included in --list.
Check the result
Run remediate --list again, or generate an executive summary. For strict automation, parse the output text as well as the exit code. When both profile and embedded manifests exist, pass --embed-manifest explicitly to select the repository copy; switching locations does not migrate entries.