Repository navigation
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.