Skip to content

Add c3-api CI gate failing on high/critical npm audit findings - #7

Merged
torreyatcitty merged 1 commit into
mainfrom
security/audit-gate-c3-api
Jul 22, 2026
Merged

Add c3-api CI gate failing on high/critical npm audit findings#7
torreyatcitty merged 1 commit into
mainfrom
security/audit-gate-c3-api

Conversation

@torreyatcitty

@torreyatcitty torreyatcitty commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the security team's required dependency-audit gate for c3-api: CI fails on any high or critical npm audit advisory. (Sibling PR adds the same gate for node-provider-proxy; this repo previously had no workflows.)

  • Audits two lockfiles: the repo root (covers the shared workspace libraries under c3-api/lib/*) and c3-api itself.
  • Plain npm audit --audit-level=high is the whole gate — npm's exit code respects the level flag, so no wrapper script is needed. No npm ci either; audit runs straight off the lockfile, so the job takes seconds.
  • Path-filtered to c3-api/**, the root lockfile, and the workflow itself, so it stays out of unrelated PRs. workflow_dispatch allows manual re-runs when new advisories publish without a code change.

No dependency changes: both lockfiles currently pass (c3-api has 10 low + 1 moderate remaining, below the gate; the moderate follow-redirects bump is intentionally left to its existing dependabot PR).

Test plan

  • npm audit --audit-level=high exits 0 locally in both the repo root and c3-api/
  • Trigger the workflow via workflow_dispatch (path filters mean this PR itself won't run it) and confirm it passes

🤖 Generated with Claude Code

Security team requirement: dependency audits at the high level must
pass in CI. Audits both the repo-root lockfile (shared workspace
libraries under c3-api/lib) and c3-api's own lockfile. npm audit's
--audit-level flag gates the exit code directly, so no wrapper is
needed. workflow_dispatch allows manual re-runs when new advisories
publish without a code change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Comment thread .github/workflows/audit-c3-api.yaml
@torreyatcitty
torreyatcitty merged commit d222b10 into main Jul 22, 2026
1 check passed
@torreyatcitty
torreyatcitty deleted the security/audit-gate-c3-api branch July 22, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants