ENGINEERING

Route GitLab dependency-bump MRs through CVE-aware review

When a merge request changes a lockfile or manifest, it extracts the changed dependencies, checks them for known vulnerabilities.

CategoryEngineering
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitLab merge request openedGitLabGitLab
  • LogicDetect lockfile or manifest changes
  • ActionExtract changed packages and query CVE advisoriesHTTP webhook
  • LogicBranch on whether a vulnerable version is introduced
  • OutputLabel, route to security pool, and comment CVEsGitLabGitLab

What it does

Gives dependency changes their own security lane. When an MR edits a lockfile or package manifest, the flow diffs which packages and versions changed, looks each up against vulnerability advisories, and decides routing on the result. Bumps that pull in a flagged version get the security label, the reviewer pool, and a comment listing the specific CVEs so the reviewer knows exactly what to check.

When to use it

Use it when automated dependency PRs (or manual bumps) are frequent and you don't want every one of them to consume a security reviewer — only the ones that actually introduce known-vulnerable versions.

How it works

  1. 1A GitLab webhook fires on merge request open.
  2. 2A logic step checks whether the MR touches a lockfile or manifest; unrelated MRs exit.
  3. 3The flow extracts changed package names and versions from the diff and queries advisory data over HTTP.
  4. 4If any package matches a known vulnerability, it labels the MR, assigns the security pool, and comments the advisory details.
  5. 5Clean dependency bumps get an auto-approve-eligible label and pass through to the default pool.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitLabRepos, MRs, pipelines, registry.
  2. 2
    Connect HTTP webhookTrigger any URL on agent actions.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.