DEVOPS

Scan-Gated Base-Image Bump: Rebuild Only If the New Tag Is Actually Cleaner

Before opening a rebuild PR for a re-tagged base image, scans both the old and new digests and only proposes the bump when the new image clears the CVEs that triggered the alert.

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerRegistry webhook on new tag digestHTTP webhook
  • ActionScan old and new digest for CVEsShell
  • LogicDiff CVEs; require net high/critical reduction
  • ActionOpen digest-bump PR with CVE diffGitHubGitHub
  • OutputReport decision and CVE delta to SlackSlack

What it does

A re-tag does not always mean fewer vulnerabilities. This template reacts to a new base-image digest, runs a vulnerability scan against both the currently pinned digest and the new one, diffs the findings, and opens a rebuild PR only when the new image genuinely removes high or critical CVEs. PRs that would add or not reduce severity are skipped and reported instead.

When to use it

Use it when you want CVE-driven bumps but refuse to churn PRs for re-tags that do not improve your security posture, or that regress it.

How it works

  1. 1A registry webhook fires when a watched tag gets a new digest.
  2. 2A scan action runs against the old pinned digest and the new digest via the shell scanner step.
  3. 3A logic step diffs the two CVE lists and computes net high/critical change.
  4. 4If the new image clears at least one high or critical CVE, the flow opens a digest-bump PR on GitHub with the diff in the body.
  5. 5If the new image is equal or worse, no PR is opened and the case is logged.
  6. 6The decision and CVE delta are sent to Slack either way.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  3. 3
    Connect GitHubRepos, issues, pull requests, actions.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    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.