Skip to main content
rulesSource-backed

Dependency Update Review Rules

Source-backed rules for reviewing dependency update pull requests with supply-chain context, lockfile discipline, advisory checks, compatibility evidence, and privacy-safe metadata handling.

by MkDev11·added 2026-06-04·
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://docs.github.com/en/code-security/concepts/supply-chain-security/dependency-review, https://github.com/JSONbored/awesome-claude/blob/main/content/rules/dependency-update-review-rules.mdx
Safety notes
Dependency updates can change runtime code, install scripts, build plugins, transitive packages, lockfile integrity hashes, generated clients, and deployment behavior., Security updates should be prioritized, but they still need compatibility evidence, a rollback path, and review of newly introduced transitive dependencies., Treat major version upgrades, package-manager changes, new registries, git dependencies, postinstall scripts, and build-tool updates as high-risk until reviewed.
Privacy notes
Dependency names, versions, private registry hosts, scoped package names, repository URLs, and advisory matches can reveal proprietary architecture or unreleased product plans., Do not paste full private lockfiles, internal package metadata, paid registry URLs, or vulnerability details into public PR comments., External advisory and package-health services should only receive public package identifiers, or private identifiers after explicit approval.
Author
MkDev11
Submitted by
MkDev11
Claim status
unclaimed
Last verified
2026-06-04

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

78

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Copy & paste

Copy-ready — paste the snippet to get started.

20 minutes

Adoption plan

Balanced adoption plan

Current risk score 16/100. Use staged verification before broader rollout.

Risk 16

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (5/6 signals complete).

Risk 15

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

5/6 steps complete with no blocking gaps for this preset.

Risk 14

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Prerequisite readiness

Prerequisite readiness

4 prerequisites to line up before setup. Includes a review or approval gate.

0/4 ready
Permissions & scopes1Network & hosting1Review & approval1General120 minutes

Safety & privacy surface

Safety & privacy surface

3 safety and 3 privacy notes across 4 risk areas. Review closely: permissions & scopes.

4 areas
  • SafetyLocal filesDependency updates can change runtime code, install scripts, build plugins, transitive packages, lockfile integrity hashes, generated clients, and deployment behavior.
  • SafetyLocal filesSecurity updates should be prioritized, but they still need compatibility evidence, a rollback path, and review of newly introduced transitive dependencies.
  • SafetyExecution & processesTreat major version upgrades, package-manager changes, new registries, git dependencies, postinstall scripts, and build-tool updates as high-risk until reviewed.
  • PrivacyPermissions & scopesDependency names, versions, private registry hosts, scoped package names, repository URLs, and advisory matches can reveal proprietary architecture or unreleased product plans.
  • PrivacyLocal filesDo not paste full private lockfiles, internal package metadata, paid registry URLs, or vulnerability details into public PR comments.
  • PrivacyGeneralExternal advisory and package-health services should only receive public package identifiers, or private identifiers after explicit approval.

Safety notes

  • Dependency updates can change runtime code, install scripts, build plugins, transitive packages, lockfile integrity hashes, generated clients, and deployment behavior.
  • Security updates should be prioritized, but they still need compatibility evidence, a rollback path, and review of newly introduced transitive dependencies.
  • Treat major version upgrades, package-manager changes, new registries, git dependencies, postinstall scripts, and build-tool updates as high-risk until reviewed.

Privacy notes

  • Dependency names, versions, private registry hosts, scoped package names, repository URLs, and advisory matches can reveal proprietary architecture or unreleased product plans.
  • Do not paste full private lockfiles, internal package metadata, paid registry URLs, or vulnerability details into public PR comments.
  • External advisory and package-health services should only receive public package identifiers, or private identifiers after explicit approval.

Prerequisites

  • A dependency update pull request with manifest, lockfile, and package-manager context.
  • Access to current CI, test results, dependency review output, advisory alerts, and release notes or changelogs for the updated packages.
  • A project policy for supported runtimes, package managers, registries, license constraints, and emergency security updates.
  • Permission to split, defer, or block dependency updates when provenance, compatibility, or privacy evidence is incomplete.

Schema details

Install type
copy
Reading time
6 min
Difficulty score
41
Troubleshooting
Yes
Breaking changes
No
Collection metadata
Estimated setup
20 minutes
Difficulty
intermediate
Full copyable content
You are reviewing a dependency update pull request.

Rules:
1. Classify the update by security urgency, SemVer range, runtime surface,
   and maintainer trust before approving.
2. Require a lockfile diff, changelog or release-note evidence, dependency
   review output, advisory triage, and relevant tests.
3. Split unrelated major upgrades, build-tool changes, and security fixes
   unless the maintainer explicitly accepts the combined risk.
4. Do not run public advisory or package-health lookups for private package
   names, private registries, or internal repository URLs without approval.
5. Block merge when provenance, compatibility, lockfile integrity, or
   rollback evidence is missing.

About this resource

Purpose

Use these rules when an AI coding assistant, dependency bot, or human maintainer proposes package updates. The goal is to keep routine patch updates fast while forcing risky dependency changes through a source-backed review.

Dependency updates are code changes. A one-line manifest bump can alter runtime behavior, build output, install-time scripts, native extensions, transitive dependency trees, licenses, and vulnerability exposure.

Update Classification

Classify the update before reviewing style or merge convenience.

  1. Security fix. An advisory, CVE, Dependabot security alert, or OSV match says the installed version is vulnerable.
  2. Patch or minor update. SemVer suggests backward compatibility, but changelogs and lockfiles still need review.
  3. Major update. The package declares breaking-change risk or shifts public APIs, runtime support, configuration, or generated output.
  4. Build or release tooling. Bundlers, compilers, test runners, linters, package managers, CI actions, Docker bases, and publishing tools can affect every artifact even when application code is unchanged.
  5. New dependency or registry source. A newly introduced package, git URL, tarball URL, private registry, alternate registry, or postinstall script needs provenance review before merge.
  6. Transitive churn. A small direct update may replace many nested packages; review the lockfile and security impact before accepting it.

When the class is unclear, treat the update as high risk until release notes, dependency-review output, or package-manager evidence explains the change.

Required Evidence

A dependency update PR should include enough evidence for a reviewer to understand what changed and why.

  • Manifest and lockfile changes are present together when the package manager expects a lockfile.
  • Release notes, changelog entries, advisory records, or migration notes cover every direct dependency update.
  • Dependency review, advisory scanning, or an equivalent local report is clean or has documented exceptions.
  • CI ran on the reviewed head commit with tests that exercise affected runtime, build, and integration paths.
  • New packages have source, license, maintainer, install-script, and registry provenance reviewed.
  • Major upgrades name the breaking-change surface and the migration evidence.
  • Security updates name the vulnerable package, affected range, fixed range, and why the selected version is sufficient.
  • Rollback, pinning, or emergency revert steps are clear for production-facing updates.

Do not accept "the bot opened it" or "tests passed locally" as enough evidence for a dependency update that changes runtime, build, deploy, or security behavior.

Review Rules

  • Review the lockfile first; it reveals transitive churn that the manifest may hide.
  • Split security fixes from broad modernization work unless the fix cannot be applied without the larger upgrade.
  • Split unrelated major version updates into separate PRs so failures can be bisected and reverted.
  • Prefer the smallest fixed version that resolves a security advisory when a broader upgrade would increase compatibility risk.
  • Confirm that package-manager commands were run from the expected workspace, with the expected package-manager version and registry configuration.
  • Require tests around affected imports, generated clients, browser bundles, migrations, CLIs, server startup, or plugin loading paths.
  • Re-check dependency-review output after a rebase or force push because the base branch can change the lockfile and advisory diff.
  • Treat install scripts, native binaries, code generation, and release tooling as privileged execution paths.

Merge Blockers

Block merge until resolved when:

  • the manifest changed without the expected lockfile update;
  • the lockfile changed without a matching source change or explanation;
  • a dependency points to a new registry, tarball, git URL, fork, or unpinned source without provenance review;
  • dependency review, advisory scanning, or CI reports a new high-severity issue that is not triaged;
  • a major upgrade lacks migration notes, compatibility tests, or owner review;
  • security-advisory details are copied into public comments with private package names or exploit context;
  • generated artifacts changed but the generator version, command, or source input is missing;
  • the update changes package-manager behavior, publish automation, CI actions, or build tooling without release-owner review.

Review Checklist

  • {"task": "Update class named", "description": "The PR explains whether this is a security, patch, minor, major, build-tool, new-dependency, or transitive update"}
  • {"task": "Source evidence linked", "description": "Release notes, changelog entries, advisory records, or migration notes cover the direct updates"}
  • {"task": "Lockfile reviewed", "description": "Manifest and lockfile changes match the package-manager expectations, and transitive churn is understood"}
  • {"task": "Scanners triaged", "description": "Dependency review, advisory checks, or equivalent local reports are clean or have documented exceptions"}
  • {"task": "Compatibility tested", "description": "CI and targeted tests cover the runtime, build, integration, or generated-code paths touched by the update"}
  • {"task": "Privacy protected", "description": "Private package names, registries, advisory details, and full lockfile contents are not exposed publicly"}

AI Review Rules

AI assistants can help summarize dependency diffs, but reviewers should require source evidence and current check results.

  • Ask the assistant to classify the update before asking for an approval recommendation.
  • Require the assistant to list every changed direct dependency and summarize transitive churn separately.
  • Have the assistant quote package names and versions from the manifest or lockfile rather than relying on PR titles.
  • Keep private dependency metadata out of public lookups unless explicitly approved.
  • Re-run the review after rebases, force pushes, or package-manager lockfile regeneration.

Troubleshooting

  • Patch update breaks tests: inspect transitive dependency changes and generated artifacts before assuming the direct package broke compatibility.
  • Security update requires a major version: isolate the security fix, name the breaking changes, and require owner review for the migration.
  • Dependency review shows a new advisory: confirm whether the selected version is affected, whether a fixed range exists, and whether a temporary pin or replacement is safer.
  • Lockfile is noisy: regenerate with the repository's documented package manager and version; avoid mixing npm, pnpm, Yarn, Poetry, Cargo, or Go module behavior in one PR.
  • Private packages are involved: keep package names, versions, advisory details, and registry URLs in private review channels.

Duplicate And History Check

Checked existing rules, guides, hooks, commands, skills, open PRs, and closed PR history for dependency update rules, supply-chain dependency review, Dependabot review, lockfile review, OSV advisory review, dependency-security hooks, and Scorecard-based dependency risk review.

Adjacent content includes the /dependency-risk-review command, dependency update checker hook, dependency security scanner hook, lockfile provenance checker hook, review-AI-generated-code guide, and high-risk code review escalation rules. This entry is distinct because it is a portable rules policy for deciding when dependency update PRs have enough source evidence, lockfile integrity, compatibility testing, and privacy-safe advisory handling to merge.

Where Dependency Review Runs

GitHub's dependency review surfaces in two places. Use the table below to decide which one a PR's evidence should reference.

Surface What it does Where it runs
"Files Changed" tab review Displays a dependency review with a rich diff on the "Files Changed" tab of a pull request For pull requests that contain changes to package manifests or lock files
Dependency review action Scans for vulnerable versions of dependencies introduced by package version changes in pull requests, and warns about associated security vulnerabilities Within GitHub Actions, using the dependency review REST API to get the diff between the base and head commit

Either way, dependency review informs you of:

  • Which dependencies were added, removed, or updated, along with the release dates
  • How many projects use these components
  • Vulnerability data for these dependencies

Sources

Source citations

Add this badge to your README

Show that Dependency Update Review Rules is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/rules/dependency-update-review-rules.svg)](https://heyclau.de/entry/rules/dependency-update-review-rules)

How it compares

Dependency Update Review Rules side by side with 2 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

Field

Source-backed rules for reviewing dependency update pull requests with supply-chain context, lockfile discipline, advisory checks, compatibility evidence, and privacy-safe metadata handling.

Open dossier

Source-backed rules for requiring coding agents to provide fresh, scoped, and reviewer-visible test evidence before a pull request can be approved or merged.

Open dossier

Source-backed rules for reviewing production database migrations before merge with lock-risk checks, expand-contract rollout, backfill controls, rollback limits, and privacy-safe migration evidence.

Open dossier
Next steps
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backed
SubmitterMkDev11MkDev11MkDev11
Install riskReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
Brand
Categoryrulesrulesrules
SourceSource-backedSource-backedSource-backed
AuthorMkDev11MkDev11MkDev11
Added2026-06-042026-06-042026-06-04
Platforms
Harness
Source repo
Safety notesDependency updates can change runtime code, install scripts, build plugins, transitive packages, lockfile integrity hashes, generated clients, and deployment behavior. Security updates should be prioritized, but they still need compatibility evidence, a rollback path, and review of newly introduced transitive dependencies. Treat major version upgrades, package-manager changes, new registries, git dependencies, postinstall scripts, and build-tool updates as high-risk until reviewed.Tests can mutate databases, send network requests, write files, consume cloud quota, or contact sandboxed services; coding agents must use isolated test environments and documented safe commands. Passing one focused test does not prove unrelated risky paths are safe; require broader checks for auth, data deletion, payments, migrations, release automation, and generated artifacts. Treat agent-generated test summaries as untrusted until the reviewer can inspect the exact command, status check, log, or reproducible manual verification evidence.Production migrations can lock tables, rewrite rows, drop data, invalidate indexes, break old application versions, delay deploys, or require backup restore instead of a simple revert. Generated ORM migrations should be reviewed as SQL or engine-specific operations; do not assume type-safe schema code is operationally safe. Backfills, constraint validation, index builds, and cleanup migrations should run with batching, monitoring, retry behavior, and stop conditions appropriate to the production workload.
Privacy notesDependency names, versions, private registry hosts, scoped package names, repository URLs, and advisory matches can reveal proprietary architecture or unreleased product plans. Do not paste full private lockfiles, internal package metadata, paid registry URLs, or vulnerability details into public PR comments. External advisory and package-health services should only receive public package identifiers, or private identifiers after explicit approval.Test logs, snapshots, fixtures, screenshots, coverage reports, and CI artifacts can expose secrets, customer data, internal hostnames, private package names, prompts, or file paths. Do not paste raw private CI logs, database rows, browser traces, screenshots, or failing payloads into public PR comments without redaction. When a test needs private credentials or data, record the approved internal verification channel rather than copying sensitive details into the public PR.Migration diffs, dry-run logs, explain plans, table names, column names, row counts, sample rows, tenant IDs, and rollback notes can expose sensitive product or customer information. Do not paste production rows, unredacted schema snapshots, connection strings, database hostnames, backup locations, or incident-specific migration logs into public PR comments. When evidence must stay private, leave a minimal public note that names the verification class and owner without exposing database contents or operational secrets.
Prerequisites
  • A dependency update pull request with manifest, lockfile, and package-manager context.
  • Access to current CI, test results, dependency review output, advisory alerts, and release notes or changelogs for the updated packages.
  • A project policy for supported runtimes, package managers, registries, license constraints, and emergency security updates.
  • Permission to split, defer, or block dependency updates when provenance, compatibility, or privacy evidence is incomplete.
  • A pull request, branch, or patch created or modified by a coding agent.
  • Access to the repository's documented test commands, CI status checks, and branch-protection rules.
  • Enough diff context to identify touched behavior, affected packages, generated files, and risky runtime paths.
  • Permission to request changes or block merge when test evidence is stale, incomplete, unsafe, or unverifiable.
  • A migration pull request, SQL patch, ORM migration, release plan, or generated schema diff that may run against a shared or production database.
  • Access to the target database engine documentation, migration tool behavior, current CI status, staging or dry-run result, and affected service owner.
  • A documented deployment order for application code, background jobs, migrations, backfills, cleanup migrations, and rollback or forward-fix steps.
  • Permission to block merge when the migration risk, owner review, test evidence, or privacy handling is incomplete.
Install
Config
Citations
ClaimUnclaimedUnclaimedUnclaimed
Open 3 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.