Skip to content

Add Socket supply-chain scanning; tune dependency audit noise#787

Merged
theoephraim merged 1 commit into
mainfrom
socket-supply-chain-scanning
Jun 16, 2026
Merged

Add Socket supply-chain scanning; tune dependency audit noise#787
theoephraim merged 1 commit into
mainfrom
socket-supply-chain-scanning

Conversation

@theoephraim

Copy link
Copy Markdown
Member

Replaces blunt, noisy dependency auditing with Socket as the primary supply-chain gate, and demotes `bun audit` to a low-noise backstop.

What changed

Socket (socket.dev)

  • `socket.yml` — tunes the Socket GitHub App so PR scans are actually readable: only scan PRs that change a manifest/lockfile, drop the auto-generated overview/report comments, keep high-signal alerts (malware, install scripts, network/env access, typosquat, non-registry sources, obfuscation, critical CVE) and mute reputational noise (new author, telemetry, minified, native code, deprecated).
  • `nightly-socket-scan.yaml` — nightly `socket ci` over `main` (time-axis: catches advisories newly disclosed against deps already shipped). Read-only.
  • `weekly-socket-fix.yaml` — weekly `socket fix` that opens remediation PRs. No `--autopilot` — never auto-merges; a human reviews the dep diff before it lands.

bun audit

  • PR gate (`audit:changed`) dropped from `moderate` → `critical`. Socket is the real gate now; bun audit is a free, local, critical-only floor that won't block PRs on transitive dev-tooling noise.
  • Removed the nightly bun audit — redundant with `socket ci` on the known-CVE axis. The `audit:full` script stays for on-demand local use.

Setup required

  • `SOCKET_SECURITY_API_KEY` secret (for the CLI workflows; the App needs no key).

Notes

  • `socket fix` PRs open with the built-in `GITHUB_TOKEN`, so they won't auto-trigger CI — swap for a PAT/App token if CI-on-bot-PRs is wanted.
  • Worth confirming `socket fix` handles `bun.lock` cleanly on first manual run.

- Add nightly socket ci scan and weekly socket fix (remediation PRs, no auto-merge)
- Add socket.yml to tune alert noise: scope PR scans to dep changes, mute low-signal reputational alerts, keep malware/install-script/network/env signals
- Drop bun audit PR gate from moderate to critical-only; Socket is the primary gate
- Remove nightly bun audit (redundant with socket ci on the known-CVE axis)
@theoephraim theoephraim force-pushed the socket-supply-chain-scanning branch from d30579e to 95e57e0 Compare June 16, 2026 00:46
@theoephraim theoephraim merged commit 257f2a7 into main Jun 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant