Repository navigation
Releases
v1.2.3 - patch bundled undici advisories
A security release. The bundled dist/index.js ships undici 6.29.1 (was 6.28.0), which the action uses for every GitHub API call through @actions/github. No behaviour changes.
Security
undici 6.28.0 to 6.29.1 fixes these advisories in the bundled code:
| Severity | Advisory | Issue |
|---|---|---|
| high | GHSA-2m5v-pch6-74hx | TLS certificate validation bypass via dropped tls options in Agent |
| high | GHSA-qrxm-fqhp-jwvm | Denial of Service via TLS 1.2 certificate-changing renegotiation |
| high | GHSA-xjj6-f33q-929c | Denial of Service via unhandled error on excessive content-encodings |
| high | GHSA-rfgv-xxqx-mfg5 | Denial of Service via unrequested WebSocket subprotocol |
| moderate | GHSA-4qv8-2p9j-2685 | Denial of Service via unbounded memory in the EventSource parser |
| moderate | GHSA-9fm3-97px-rjf6 | WebSocket client Denial of Service via unbounded automatic PONG buffering |
| moderate | GHSA-3wwx-pv8p-q78v | Denial of Service via unhandled error in WebSocket permessage-deflate decompression |
| low | GHSA-r53p-7pc4-xj5r | Downstream response splitting via retry interceptor |
The action only talks to the GitHub API, so practical exposure was low, but every advisory above is now out of the code your workflow runs.
Maintenance
npm auditis clean. The remaining fixes (proxy-addr, body-parser, zod, the MCP SDK, hono, fast-uri, ip-address, qs) were in install-time dependencies that are not part ofdist/index.js.actions/setup-node7.1.0 and@types/node26.6.11 in CI.
Upgrading
Workflows on @v1 pick this up automatically. Workflows pinned to the v1.2.2 commit SHA need the new SHA: c8e6aaa81ae26a08854f6414bd55081efa42c787.
114 tests. Verify the bundle with gh attestation verify dist/index.js --repo DigiCatalyst-Systems/dependabot-risk.
v1.2.2 - route Dependabot pull requests by their branch
A public workflow running this action with ecosystem: auto got a report in which every npm package read could not check — PyPI returned 404 for lucide-react. The input was passed to the analyzer unchecked, and the analyzer sends anything that is not npm to PyPI.
Fixed
-
Dependabot pull requests are routed by their branch. Dependabot names its package manager in the head branch (
dependabot/npm_and_yarn/...,dependabot/pip/...,dependabot/github_actions/...), and that settles the registry for every package in the pull request. It now takes precedence over theecosysteminput and over anything read from a package name. An npm bump in thefrontend/folder of a Python repository goes to npm without any configuration. Both/and-branch separators are read. -
Docker images are no longer mistaken for actions. A slashed name such as
bitnami/redislooks exactly like an action reference, so a Docker bump was analyzed as a GitHub Action and its Scope column saidCI. The branch now names it Docker. Bundler, Cargo, Composer, Go modules, Gradle, Helm, Maven, NuGet, Terraform and the other managers this action does not cover are named the same way, instead of being sent to a registry that cannot hold them. A manager the action has never heard of falls back to the previous behaviour. -
The
ecosysteminput is validated. It is trimmed and case-insensitive, soPyPIworks. Any value other thannpmorpypiraises one warning, and a package the pull request does not place is reported as unchecked, with a hint to set the input, rather than sent to a guessed registry. Unchecked packages count asreview, so they never becomesafe-to-automerge.
Upgrading
Workflows on @v1 pick this up automatically. Workflows pinned to the v1.2.1 commit SHA need the new SHA: 4c78cac01fa2a28a49081514a9fc637120ec71dc.
114 tests. Renovate pull requests, and pull requests opened by people, behave as before when ecosystem is npm or pypi.
v1.2.1 — name unsupported ecosystems instead of 404ing
A study of 2,447 merged Dependabot pull requests across 39 repositories found that 23% of package analyses were failing. They turned out to be three separate defects wearing the same error message.
Fixed
-
A Gradle version-catalog alias is no longer treated as a package. Dependabot's Gradle pull requests open with the catalog alias and list the real coordinates beneath it:
Bumps `media3` from 1.10.1 to 1.11.0. ← alias Updates `androidx.media3:media3-exoplayer` from 1.10.1 to 1.11.0 ← the packagesThe parser took that first line as a package, invented
media3, and then reported failing to find it. Same forlog4j2Version,ksp,jna.versionandktor.The rule is structural rather than a guess about what a name looks like: once any
Updatesline is present, theBumpsline summarises them and is ignored, along with the title. A single-package pull request has noUpdateslines and is unaffected — andktoris a plausible package name, so any shape-based heuristic would eventually have been wrong. -
Maven and Gradle coordinates are named, not sent to npm.
org.springframework:spring-corewas going to the npm registry and returning a 404. On a Java, Kotlin or Android repository every row readcould not check — npm registry returned 404. Not a poor report: a table of nothing but errors, which reads as a broken action rather than an unsupported ecosystem.A
group:artifactcoordinate is now reported as "Maven is not supported yet — this action covers npm, PyPI and GitHub Actions", with one notice for the pull request rather than a warning per package.These still count as
review, so they never becomesafe-to-automerge. The action does not vouch for what it did not read.
Supported ecosystems
npm, PyPI and GitHub Actions. That boundary is now stated in the README and enforced in the code, rather than being discovered by a user when a registry lookup fails.
Maven support is being considered but is not close to free: OSV covers Maven well, though release notes depend on a POM's <scm> field, which resolves for only about half of coordinates — and following parent POMs points at the wrong repository (log4j-core resolves to apache/logging-parent, not apache/logging-log4j2), which would produce confidently wrong breaking-change data.
104 tests, up from 98. No behaviour change for npm, PyPI or GitHub Actions packages.
Verified against the full 2,447-pull-request corpus: exactly the 11 phantom names disappear, all 11 were previously errors, and no real package is lost.
v1.2.0 — scope column, build provenance, end-to-end coverage
Dependency scope moves into its own column, releases now carry build provenance you can verify, and the action finally has an end-to-end test.
| | Package | Scope | Change | What to know |
|----|----------------------|----------|-------------------|-------------------------------------------|
| 🚨 | `lodash` | runtime | 4.17.20 → 4.17.21 | closes Command Injection (HIGH, fix soon) |
| 🚫 | `actions/checkout` | CI | 4 → 7 | 3 breaking changes · now requires runner… |
| ✅ | `esbuild` | dev | 0.28.1 → 0.28.2 | nothing found |
| ✅ | `tough-cookie` | indirect | 4.1.2 → 4.1.3 | nothing found |
Changed
-
Scope is a column, written in words. v1.1.0 tagged it inline as
🔧dev/⚙️ci/📦indirect, which put a second emoji vocabulary next to the marker column and asked the reader to learn two. It is nowruntime,dev,CIandindirectin a column of their own — withCIcapitalised, because it is an initialism.runtimeis stated rather than implied by an absent tag, and—means the scope could not be determined: a cell that says "not known" instead of one that looks unfilled.
Added
-
Build provenance on every release. This action ships a bundled 1.1 MB
dist/index.js, and the people most likely to install it are the ones who pin by SHA and read what they run. You no longer have to take our word that the bundle matches the source beside it:$ gh attestation verify dist/index.js --repo DigiCatalyst-Systems/dependabot-riskThe signing workflow rebuilds the bundle from
src/at the release tag and refuses to attest if the rebuild differs from what was committed — so the attestation certifies a bundle proven to match the source, not merely one we uploaded. -
An end-to-end test.
run()now runs under test against real Dependabot payloads, covering parsing, ranking, rendering, the outputs, the comment upsert and every label state. Only the two calls that reach the network are stubbed;@actions/corereadsINPUT_*from the environment and writes toGITHUB_OUTPUTexactly as a runner drives it.This closes a gap worth naming plainly:
reconcileLabelshipped in v1.2.0's predecessor having never once executed. The label add and remove paths were reasoned about but never run. They are now covered.
Fixed
- The test suite could corrupt its own reporting. When the runner runs a file in a child process it sends V8-serialised results over stdout, and the action writes its report to that same stream — which could interleave and produce
Unable to deserialize cloned data. Earlier green runs were luck rather than correctness.
Internal
run() moved from src/main.ts to src/action.ts, leaving main.ts as a three-line entry point. Importing main.ts previously ran the action, which is why no end-to-end test existed. No behaviour change.
98 tests, up from 92. Consumes dep-diff-mcp 0.3.2, unchanged since v1.0.3.
Earlier releases predate the attestation workflow and carry no provenance.
v1.1.0 — dependency scope, and safe-to-automerge
The report now says where a dependency runs, and when a pull request is boring enough for a machine to merge.
| | Package | Change | What to know |
|----|---------------------------|-------------------|----------------------------------------------------|
| 🚨 | `lodash` | 4.17.20 → 4.17.21 | closes Command Injection (HIGH, fix soon) |
| 🚨 | `esbuild` 🔧dev | 0.28.1 → 0.28.2 | closes Path Traversal (HIGH, fix soon) |
| 🚫 | `actions/checkout` ⚙️ci | 4 → 7 | 1 breaking change · now requires runner v2.327.1… |
| ✅ | `tough-cookie` 📦indirect | 4.1.2 → 4.1.3 | nothing found |
Neither feature needs a new permission. Both run on the pull-requests: write the documented workflow already grants.
Added
-
Dependency scope. Packages that do not ship to production are tagged:
🔧devfor development dependencies,⚙️cifor GitHub Actions steps,📦indirectfor transitive ones. Runtime dependencies stay unmarked, because that is the default case and marking every row would be a column of restatement.Both
🚨rows above are HIGH severity and both still rank as security findings. The tag tells you which one ships. -
safe-to-automergeoutput.trueonly when every package in the pull request resolved no advisories, had no breaking changes in its release notes, and was a patch or minor bump. A package the action could not check is never safe, and neither is a pull request it could not read at all. -
labelinput. Names a label to apply when the pull request qualifies — and to remove when it stops qualifying. Empty by default: a label that appears unasked may trigger an automerge workflow you already have.- uses: DigiCatalyst-Systems/dependabot-risk@v1 id: risk with: label: safe-to-automerge - if: steps.risk.outputs.safe-to-automerge == 'true' run: gh pr merge --auto --squash "${{ github.event.pull_request.html_url }}" env: GH_TOKEN: ${{ github.token }}
Notes on what these deliberately do not do
Scope never changes a package's risk level. A build tool runs in CI holding your repository token — that is exactly how the tj-actions/changed-files attack worked — so a HIGH advisory in a development dependency is still reported as a HIGH advisory. The tag says where the code runs; it does not say to worry less.
The action never merges anything itself. Merging would need contents: write — write access to your source, from a tool whose whole pitch is supply-chain safety — and a wrong merge is unrecoverable where a wrong label is not. The workflow above uses GitHub's own automerge, which respects your branch protection, required checks and merge queue.
The label is reconciled on every run, not just added. If a force-push turns a patch bump into a major one, the label comes off before anything merges it. That also means a hand-applied label is stripped on the next unsafe run: a stale "safe to merge" is worse than a stale report, because a bot acts on it without reading. To force a merge, merge directly.
Where the scope comes from
Dependabot publishes it in the commit trailer (dependency-type: direct:development), which is structured metadata rather than a presentation format — sturdier than the title and body parsing everything else relies on.
Renovate has no equivalent. It offers only an optional Type body column whose position prBodyColumns moves and whose presence merge-confidence badges displace; it was absent in five of six real repositories sampled. The parser reads the column index from the header rather than assuming a position, so a Renovate pull request without one is left untagged rather than guessed at.
Fixed
- The README's grouped example still showed the "Merge first / Read first / Routine" layout from before v1.0.3 replaced it with a table. It now matches what the action actually renders.
92 tests, up from 65. Consumes dep-diff-mcp 0.3.2, unchanged from v1.0.3.
v1.0.3
The grouped report is now a table, with one marker per package instead of one per line.
| | Package | Change | What to know |
|----|----------------------|-------------------|----------------------------------------------------|
| 🚨 | `lodash` | 4.17.20 → 4.17.21 | closes Command Injection (HIGH, fix soon) · 1 more |
| 🚫 | `actions/setup-node` | 4 → 7 | 7 breaking changes · Upgrade action to use node24… |
| ⚠️ | `typescript` | 6.0.3 → 7.0.2 | REVIEW: Major version bump. |
| ✅ | `esbuild` | 0.28.1 → 0.28.2 | nothing found |
Changed
- Four states, one per package. 🚨 closes a security advisory — merge it. 🚫 has breaking changes — read first.
⚠️ nothing breaking found but worth a look, or the analysis failed. ✅ nothing found. Security keeps a state of its own on purpose: "merge this, it closes a hole" is the opposite instruction from "read this before merging". - Every package gets a row, routine ones included. They used to be a comma-separated afterthought, which reads as "and some others" rather than "I checked this".
- "What to know" leads with the finding, not a count. The worst advisory for a security row; for a breaking row, the change most likely to break a build outright. A new minimum requirement outranks everything else there, because it breaks a workflow whether or not you use the feature.
Fixed
- Nothing is truncated any more. The full change list moved into a per-package
<details>block beneath the table, so the "…and 3 more" cap is gone entirely rather than merely made visible. - Pipes in release-note text are escaped so they cannot split a table cell.
- Comments are capped at 60,000 characters with a pointer to the job summary. GitHub rejects a body over 65,536 and the rejection was being turned into a warning, so an oversized report would have disappeared unread.
Added
- The whole report is written to the run log, under a banner, outside the collapsed group — the one surface a fork's read-only token cannot block and the comment size limit cannot trim.
- The job summary gets a heading. The pull request comment deliberately does not: it has to lead with the verdict.
Consumes dep-diff-mcp 0.3.2, which splits a breaking-changes section per bullet. actions/setup-node 4 → 7 now reports seven changes rather than six with one run-on, and the node24 runner requirement is a change in its own right.
v1.0.2
Found by reading the first real production comment. Every fix here is the same failure class: information being silently discarded.
Fixed
- "…and 3 more" now leads somewhere. The grouped view listed three changes and dropped the rest — and the job summary was the same string, so there was no second surface carrying them either. The remainder is now in a
<details>expander, which renders in a pull request comment and a job summary alike. Foractions/setup-node4 → 7 the hidden three included the node24 runner requirement, the most actionable item in that PR. - The full report is written to the run log, in a collapsed group. It is the one surface a fork's read-only token cannot block and GitHub's comment size limit cannot trim.
- Comments are capped at 60,000 characters with a pointer to the job summary. GitHub rejects a body over 65,536 and the failure was being turned into a warning, so an oversized report would have disappeared unread.
Changed
- The footer now names Dependabot Risk Report, links the Marketplace listing, and credits DigiCatalyst Systems. Previously it credited only the analysis engine, so anyone seeing the comment in someone else's repository had no way to find the action.
- The job summary gets a heading. The pull request comment deliberately does not — it has to lead with the verdict, not a banner.
The visible cap of three per package is unchanged. A grouped pull request can carry twenty packages, and the grouped view exists to triage which of them need attention; what changed is that the cap no longer destroys anything.
v1.0.1
Consumes dep-diff 0.3.1, which fixes breaking-change extraction.
Fixed
- Breaking changes are read from the heading that marked them, rather than from the first stray mention of the word "breaking" in the body. On
zod4.5.0 the old behaviour returned a list of documentation commits and discarded all five real breaking changes, which sat under### ⚠️headings. - One entry per change, so counts are correct.
actions/setup-node4 → 7 reports six changes, not four. - Changes are grouped under their release tag instead of repeating it on every line.
- The grouped view says "…and 2 more" instead of silently listing three of five.
Changed
@actions/core3.x and@actions/github9.x. Both are ESM-only from these majors; the bundle was already ESM targeting node24.- Workflow actions pinned to commit SHAs.
v1.0.0 — Dependabot Risk Report
First release.
Tells you which Dependabot and Renovate PRs actually matter, by reading what the release notes and advisories say rather than what semver says.
What it does
- Security fixes — advisories present at the old version and resolved at the new one, via OSV.dev. Dependabot reports these on security updates; on a routine scheduled bump it says nothing, so a patch that closes a command injection looks like any other patch.
- Breaking changes — extracted from the GitHub release notes between the two versions, grouped by release tag, with CI/docs churn filtered out.
- Migration links — upgrade guide URLs found in those notes.
- A verdict, not a restatement. The report opens with what to do about the PR. A routine bump gets an explicit all-clear naming what was checked, so a quiet result reads as work done rather than nothing happening.
Supported
Dependabot and Renovate, across npm, PyPI, and GitHub Actions.
actions/* bumps need no configuration — a slashed, unscoped name is a repository coordinate, so it is detected and routed automatically. They are worth checking: tj-actions/changed-files 45.0.7 → 46.0.1 closes a HIGH-severity secret disclosure that the PR body says nothing about.
Usage
name: Dependabot risk
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
risk:
runs-on: ubuntu-latest
steps:
- uses: DigiCatalyst-Systems/dependabot-risk@v1The report is always written to the job summary, so it survives a fork PR whose token cannot post comments.
Notes
- Never silently no-ops: if a dependency bot opened the PR and no version change could be read, it warns rather than passing quietly.
- A failed analysis is reported in place rather than dropped — omitting a package would understate risk.
- Analysis is delegated to dep-diff 0.3.1, the same engine available as an MCP server for interactive use in Claude Code, Cursor, and Claude Desktop.