DEVOPS

Base-Image CVE Re-Tag Watcher with Auto Rebuild PRs

Watches the upstream base images your Dockerfiles pin to, and when a pinned digest is re-tagged to patch a CVE it opens a GitHub PR that bumps the digest and rebuilds the image.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSchedule check every 4 hours
  • ActionRead Dockerfiles and parse pinned digestsGitHubGitHub
  • ActionResolve current registry digest per tagHTTP webhook
  • LogicKeep only images whose digest drifted
  • ActionCommit digest bump and open rebuild PRGitHubGitHub
  • OutputPost PR link and changed images to SlackSlack

What it does

Monitors the base images referenced in your repository Dockerfiles. When an upstream tag (for example `node:22-bookworm-slim`) is re-published with a new digest to ship a CVE fix, this template detects the digest drift and opens a pull request that updates your pinned `FROM ...@sha256:` line so the next build picks up the patched layers.

When to use it

Run this when you pin base images by digest for reproducibility but still need to absorb security patches quickly. It closes the gap between "upstream patched the CVE" and "our image rebuilt against it" without a human watching Docker Hub.

How it works

  1. 1A schedule fires every few hours.
  2. 2The flow reads each Dockerfile from GitHub and extracts the pinned image and digest.
  3. 3It resolves the current digest for each tag from the registry and compares against the pinned value.
  4. 4A logic step keeps only images whose digest actually changed.
  5. 5For each drifted image it commits an updated `FROM` digest on a branch and opens a PR.
  6. 6It posts the PR link and the affected images to Slack so an on-call engineer can review and merge.

Set it up

What you configure once, before turning it on.

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