rustine
v0.1.0
Published
Rustine's security analysis of your repository, on your machine: secrets, risky code, known vulnerabilities. Nothing of your code leaves it.
Readme
rustine
Rustine's repository analysis, run on your machine or in your CI. It looks for secrets written in the code or left in the git history, risky code (SQL built by hand, HTML injected unescaped, routes without a check…), packages with known vulnerabilities, and risky configuration. The rules are the same as an analysis in rustine.io.
npx rustine scanYour code never leaves the machine. Only the list of packages (ecosystem, name, version) is
sent to Rustine to compare it with known vulnerabilities, and nothing of it is kept.
--offline skips that step.
Commands
rustine scan [folder] analyses the folder (the current one by default)
--fail-on <severity> critical, high (default), medium, low or none: exit code 1 at or above
--json <file> writes the result as JSON (- for standard output)
--sarif <file> writes SARIF for GitHub's Security tab
--offline does not check packages against known vulnerabilities
--no-history does not read the git history
--lang fr|en the language of the report (the terminal's by default)
rustine fix <n> [folder] prints the prompt of problem n from the last analysis
--copy copies it to the clipboard, to paste into your coding agentWhat git ignores (.env.local, build folders…) is not read: the analysis sees what a clone
of the repository would hold. The history is read only from the root of the repository.
Exit codes: 0 nothing at the threshold, 1 at least one problem at or above --fail-on,
2 the analysis could not run.
Known vulnerabilities and the API key
Without a key, 30 checks an hour per network. With RUSTINE_API_KEY (a key from your
Rustine account, Settings → API keys, from the Solo plan), the limit is lifted. A refused key
is reported and the rest of the analysis is still printed.
GitHub Action
- uses: mben-dev/rustine-scan@v1
with:
fail-on: highThe results show in the Security tab of the repository and in the job summary.
License
Free to use, on your projects and your clients'. See LICENSE.md.
En français
L'analyse de dépôt de Rustine, sur ta machine ou dans ta CI : secrets écrits dans le code ou restés dans l'historique git, code à risque, paquets aux failles connues, configuration fragile. Mêmes règles qu'une analyse sur rustine.io.
npx rustine scan
npx rustine fix 1 --copyTon code ne quitte jamais la machine. Seule la liste des paquets (écosystème, nom, version)
part vers Rustine pour les failles connues, et rien n'en est gardé ; --offline l'évite.
Sans clé, 30 vérifications par heure ; RUSTINE_API_KEY (Réglages → Clés d'API, dès Solo)
lève la limite. Ce que git ignore
n'est pas lu. Code de sortie 1 dès qu'un problème atteint --fail-on (high par défaut).
