Skip to content

About

Dependency security and freshness for npm and Gradle repos: a CI gate that blocks only what a PR makes worse, plus secure-it and bump-it.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

supply-chain

Dependency security and freshness for npm, Gradle and GitHub Actions, with one version/advisory policy shared by CI and the update tools.

What it handles and where it stops: a plain-language guide.

  • The CI gate compares base and head against one advisory snapshot. A PR fails on what it makes worse; malware fails, unless only its own repository reports it and the code didn't change. A daily scan checks the default branch; a PR is judged whenever it changes.
  • secure-it batches actionable non-major security fixes, keeps malware fixes together, and opens a separate PR per major. It can remove redundant security floors only after a joint resolution without lockfiles proves them unnecessary.
  • bump-it chooses the highest eligible versions under the release-age policy: one routine PR for minors, patches, npm transitives and Gradle wrappers, and one per major. The tool computes npm files and generates wrappers; a coding agent (Codex or Claude Code) handles other edits and major adaptations. Every proposed change is verified.

The gate runs in GitHub Actions. The tools run on macOS and propose PRs; they do not merge them. Node 24 is required; npm 11.17+ is needed for release-age exclusions. Adoption uses a reviewed Git commit; only @leanish/agent-runtime may also be published to npm, for other repositories that share it (releasing). The current release is v0.11.1; the CHANGELOG lists its changes and what's unreleased. Licensed under Apache-2.0.

Adoption and operation

In Claude Code or Codex desktop, ask "install bump-it", "install secure-it", or "add a repository"; see the guided workflow.

Packages

  • @leanish/gate: inventories, advisory/version rules, candidate selection and the reusable gate with daily default-branch scans
  • secure-it: security batches, separate majors and verified removal of security floors; compatibility floors stay
  • bump-it: routine/major plans, tool-computed npm changes and checksummed Gradle wrapper generation
  • @leanish/setup: guided installation, gate adoption and local app schedules; its README is the command reference
  • @leanish/tool-runtime: shared config, sandboxed inventories, publication (PR text cleanup, race checks), review ticks and run.sh
  • @leanish/agent-runtime: the Codex and Claude Code runners and their support; also consumed by the incubator's runtime, as recorded in provenance, and the one package that may be published to npm

Development

npm ci --ignore-scripts
npm run check

npm run check checks the workspace layout, tests the lint's TypeScript parser, lints regular expressions (npm run lint, see eslint.config.js) and runs each workspace's typecheck and tests. The lint reads TypeScript through eslint-typescript-parser.js, which strips the types with Node and parses the rest with espree, so it relies on erasable syntax only (erasableSyntaxOnly in every tsconfig).

npm run clean removes Vitest's caches (node_modules/.vite, node_modules/.vite-temp) and coverage/ from the root and each workspace; npm run clean:deps also removes every node_modules, which npm ci --ignore-scripts restores. Both run rm -rf through npm exec --workspaces, so they need no installed dependencies.

Some integration tests skip locally (real Gradle unless SUPPLY_CHAIN_GRADLE_TESTS=1, as CI sets; the Seatbelt probe without a usable codex sandbox). A skip isn't a pass: see automated checks and skips.

About

Dependency security and freshness for npm and Gradle repos: a CI gate that blocks only what a PR makes worse, plus secure-it and bump-it.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages