🩹 Security-only dependency fixes for GitLab, driven by Trivy.
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/img/rustine-logo-dark.svg">
<img src="docs/img/rustine-logo.svg" alt="Rustine" width="320">
</picture>
</p>
<p align="center">
<a href="https://github.com/umanit/rustine/actions/workflows/ci.yml"><img src="https://github.com/umanit/rustine/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
</p>
**Rustine** opens GitLab merge requests that fix **only** the Composer and Yarn packages affected by a CVE reported by
[Trivy](https://trivy.dev). No comfort updates, no noise: a package gets a merge request because it is vulnerable, and
only the vulnerable packages are targeted (no major bump, no dependency that is not affected). The first attempt, a
refresh of the lockfile, resolves the highest version each declared range allows, so other dependencies may move along:
the description of the merge request lists every package the lockfile changes, shows the version it really installed
when it went further than the smallest fixed one, and calls out the packages that left their version line (another
major, or another minor below `1.0`).
> **Status:** pre-release (`0.x`): the CLI is complete and ready for pilot projects; expect adjustments.
## How it works
On every scheduled run, for the ecosystem(s) and severity group you ask for:
1. **Scan** — Trivy runs on the project (`--list-all-pkgs`, to tell direct from transitive dependencies). The installed
dependencies (`**/vendor`, `**/node_modules`) are skipped and telemetry is disabled.
2. **Plan** — vulnerable packages are grouped per ecosystem and severity group; for each one Rustine picks the smallest
fixed version, in the same major version when possible (the same minor version for `0.x`, where a new minor is a
breaking change).
3. **Apply** — package by package, strategies are tried in order. After each attempt the lockfile is read back: the
change is kept only if the package is no longer locked at a