What we touch, and what we don’t
Driftfix reads your code, writes a fix and runs your tests. Here’s how each step is locked down. Security teams usually ask about this first.
Your code isn’t kept
Each job works on a fresh copy and throws it away.
- Each job clones the repo into a scratch folder and deletes it when the job ends.
- We don’t store your source code, diffs or test output. Those live in the pull request, in your repo.
- Step logs keep timings and token counts; their short error messages are cleared after 30 days.
The AI sees a handful of files
Only what the fix needs, never the whole repo.
- The model gets the files that call the changed API, their direct imports and your lint settings. Nothing else.
- Every fix is based on the API company’s published migration guide, and the pull request cites the part it followed.
- Your code, comments and the guide are treated as data, never as instructions, so text like “ignore previous instructions” does nothing.
- We use Anthropic’s API, which doesn’t train on API inputs by default.
Tests run in a locked-down sandbox
One throwaway container per job.
- No secrets inside: no GitHub token, no API keys, none of your environment variables.
- Installing dependencies can reach package registries only. The network is cut before your tests run.
- It runs as a non-root user, with CPU, memory and time limits, and is destroyed afterwards.
- The test command comes from your repo or your settings, never from the AI.
Every fix is checked before you see it
Mechanical checks, not trust.
- A fix may only touch the files that use the changed API. Edits to CI config, workflow files, install scripts or
.envfiles are rejected. - It can’t add network calls that weren’t already there.
- A fix that deletes or weakens your tests can’t call itself verified.
- If your repo has no tests, the pull request says untested in its first line.
Minimal GitHub access
Two permissions, and we never merge.
- We ask for contents and pull requests (plus metadata, which every app gets). No admin, workflow or secrets access.
- Each job gets its own short-lived token, limited to the one repo it’s working on.
- We push only to new
driftfix/…branches. Never your default branch, and we never merge, approve or close anything. - Every GitHub webhook is signature-checked, and a replayed delivery is ignored.
API companies see counts, not code
They pay; you’re the user. We don’t trade one for the other.
- They see totals per change. Anything under 5 is hidden so it can’t point to one customer.
- They never see code, diffs, file paths or test output, whatever your settings.
- They see your repo’s name only if you opt in. It’s off by default, and you can leave a repo out of the totals entirely.
| Change | Affected | Migrated | Named |
|---|---|---|---|
| Charges v1 sunset | 412 | 84% | 5 opted in |
| Webhooks v2 | 268 | 41% | 2 opted in |
| Node SDK 5.0 | 133 | 27% | <5 |
Example numbers. See it in the demo →
Our own service
The basics, done properly.
- Secure, HttpOnly sign-in cookies, same-origin checks on every form, and rate limits on sign-in.
- A strict content security policy on app pages, with no third-party scripts.
- Few dependencies, Dependabot updates and
npm auditin CI.
Found a problem?
Please tell us privately through the contact form, starting the message with “Security”, not in a public issue. We reply within two working days. See also security.txt and our privacy policy.
Last updated October 14, 2026.