Features
Fixing Findings
DeployReady fixes what it can fix safely and by rule. For the rest, it can propose a diff you approve, or hand your coding agent a short instruction.
Three kinds of fix#
| Kind | What happens | Needs AI |
|---|---|---|
| Deterministic | A fixed rule rewrites the code. Examples: weak hash to SHA-256, disabled TLS verification, yaml.load, verify=False, Flask debug=True, adding .env to .gitignore. | No |
| AI-proposed diff | A model proposes a change. You see the diff and approve it. A backup is written first and the result is syntax-checked. | Yes |
| Guidance | Written steps for findings DeployReady will not edit for you. | No |
Fix one finding#
In the interactive session, run fix <n> with the number from issues. DeployReady tries the deterministic fix first. If the exact occurrence cannot be rewritten safely, it falls through to an AI-proposed diff, then to guidance. It re-verifies the finding after a fix is applied.
deployready › issues
deployready › fix 3
deployready › verify 3Fix every safe finding#
fix --all applies every safe deterministic fix in one go. It asks once, writes a backup for each change, and re-verifies each one. AI-proposed fixes are never run in bulk.
deployready › fix --allFix in CI or scripts#
analyze --fix applies the same deterministic fixes, re-scans, and reports the new score. It asks once unless you pass --yes or --json.
npx deployready@latest analyze . --no-ai --no-dynamic --fix --yes
npx deployready@latest analyze . --no-ai --no-dynamic --fix --json --fail-on criticalWith --json, the report gains a fix block with applied, skipped, scoreBefore, and scoreAfter. --fail-on gates on the result after the fix.
Hand a finding to your coding agent#
prompt <n>prints a short, paste-ready instruction for finding n. It contains the location, the issue, what to change, and how to confirm. It does not include your code. The same text is in each finding's fixPrompt field in the --json report. If your agent supports MCP, the MCP integration does this with less copying.
deployready › prompt 3
Paste this into your coding agent:
...Backups#
Before any file is changed, DeployReady copies the original to .deployready/backups/<path>.<timestamp>.bak inside the project. The folder contains its own .gitignore, so backups stay out of version control. They can contain secrets, so do not share them. To undo a fix, copy the backup over the file. Backups are not scanned.
What to check after a fix#
- Read the diff. Deterministic fixes are narrow but still change your code.
- Run your own tests.
- If a secret was involved, rotate it. Moving it to an environment variable does not undo the exposure.
- Use verify to confirm the finding is gone. See Verification and proof.