Add npm-scan to CI pipeline for supply chain security (website, snipe, kiwi frontends) #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
npm-scan (https://github.com/lateos-ai/npm-scan, Apache-2.0 + Commons Clause) is a supply chain security scanner for npm packages. It performs AST-level static and behavioral analysis to catch sophisticated attacks that
npm auditand Snyk miss: obfuscated payloads, credential stealers, conditional triggers, sandbox evasion, worm propagation, lifecycle hook abuse.License
Apache-2.0 + Commons Clause — free for internal CI use, cannot be sold/redistributed as a service. CF using it in CI is explicitly in-bounds.
Scope
Add
npx @lateos/npm-scan scan-lockfileas a CI step in the pre-publish / pre-release workflow for all CF products with npm-based frontends:Implementation
Add to
.forgejo/workflows/(or circuitforge-hooks pre-push hook) for each affected repo:Optionally upload SARIF as a build artifact for audit trail.
Policy-as-code
Add
.npm-scan.ymlto each repo to configure severity thresholds and allowlists for known-safe packages.Notes