Repository navigation
chore: enforce dependency age tooling and portable lockfiles - #324
Open
David Gamero (davidgamero) wants to merge 1 commit into
Open
David Gamero (davidgamero) wants to merge 1 commit into
David Gamero (davidgamero) wants to merge 1 commit into
Conversation
David Gamero (davidgamero)
marked this pull request as ready for review
November 30, 2026 21:30
Tatsat (Tats) Mishra 🐉 (Tatsinnit)
approved these changes
Nov 30, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the dependency-policy tooling and registry-independent lockfile updates.
No open issues 🎉
What changed in this PR
This maintenance PR strengthens dependency-policy tooling and makes the action’s lockfile registry-independent, without changing runtime code or dependency versions.
Changes:
- Requires npm >= 11.10.0, standardizes installation jobs on Node 24, and replaces mutable CI installs with
npm ci. - Removes 121 registry URLs from the lockfile while preserving dependency versions and SHA-512 integrity hashes.
- Adds isolated policy regression tests and clarifies policy limits, while preserving Dependabot’s seven-day cooldown and twice-monthly schedule.
| File | Description |
|---|---|
scripts/dependency-policy.test.mjs |
Adds local-registry tests for release age, lockfile preservation, and the npm version guard. |
README.md |
Documents tooling requirements, policy boundaries, and registry-independent lockfile maintenance. |
package.json |
Declares the npm requirement and adds the policy-test command. |
package-lock.json |
Removes registry URLs without changing versions or integrity hashes. |
.npmrc |
Enables omission of registry URLs from lockfiles. |
.github/workflows/unit-tests.yml |
Selects Node 24, installs with npm ci, and runs policy tests. |
.github/workflows/prettify-code.yml |
Selects Node 24 for formatting checks. |
.github/workflows/integration-tests.yaml |
Selects Node 24 and uses npm ci, retaining existing peer-dependency flags. |
.github/dependabot.yml |
Uses / for Actions discovery and adds a comment clarifying cooldown scope. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/directory for GitHub Actions discovery.devEngines, select Node 24 consistently in install jobs, and usenpm ciinstead of allowing CI to update dependency resolutions.omit-lockfile-registry-resolved=trueand regenerate only the lockfile. The lockfile diff removes 121 registryresolvedURLs; all dependency versions and all 121 existing SHA-512 integrity entries are unchanged. No registry override is committed.Review findings and limitations
cooldown.default-days: 7; this PR preserves it rather than changing the waiting period. Cooldown applies to version updates, not Dependabot security updates.min-release-age=7is a resolution filter, not an independent age audit of every previously locked package.npm ciinstalls the reviewed lockfile. Review remains necessary for transitive changes and security updates.min-release-age; npm clients supportingdevEnginesnow reject an unsupported package-manager version. Very old clients can also ignoredevEnginesand must not be used. CI explicitly selects Node 24.Validation
npm ci --ignore-scripts --no-audit --no-fundthrough the configured corporate proxy endpoint: passed, 52 packages installed; the endpoint was supplied only as a local command-line override, not committed to the repository or workflows.npm run test-dependency-policy: 4 passed; uses an isolated localhost metadata fixture, no real package downloads or lifecycle scripts.npm test: 119 passed across 6 files.npm run check: passed.npm run build: passed; generatedlib/files remain ignored and are not committed.npm run format-check: passed.git diff --check: passed.40d0ef8bc0130aee9f9aac50586c6db304d81d58: Windows/macOS/Linux integration, unit/policy tests, formatting, CodeQL analysis and results, commit-signature verification, and CLA. Actual Dependabot service behavior will be validated by its next run after merge.This is a maintenance-only PR: no action runtime code, dependency versions, action runtime declaration, or changelog changes. Merging this PR should not trigger the changelog-driven release workflow. No tag or release was created, and no merge was performed.
Follow-up cooldown research and exhaustive proxy validation
.npmrc. Security-only updates explicitly pass--min-release-age=0, overriding.npmrc. Registry-side quarantine remains independent.