Skip to content

chore(ci): move security audit from PR checks to release gate#69

Open
jhamon wants to merge 1 commit intomainfrom
chore/move-security-audit-to-release
Open

chore(ci): move security audit from PR checks to release gate#69
jhamon wants to merge 1 commit intomainfrom
chore/move-security-audit-to-release

Conversation

@jhamon
Copy link
Contributor

@jhamon jhamon commented Mar 6, 2026

Summary

Bugbot already handles vulnerability scanning on PRs, making the npm audit step in CI redundant there. Running it in PR CI also causes friction by blocking merges for vulnerabilities unrelated to the PR's changes. Moving the check to the release workflow ensures high/critical CVEs still block publishing without disrupting PR flow.

Changes

  • Removed npm audit --audit-level=high from .github/workflows/ci.yml
  • Added npm audit --audit-level=high to .github/workflows/release.yml after the Setup step, before any version bumping — so a vulnerability stops the release before anything is committed or published to npm

Test Plan

  • CI passes on this PR (no audit step to fail)
  • Release workflow visually confirmed to have audit step in correct position

Note

Medium Risk
Release pipeline behavior changes: publishes will now fail early on high/critical npm audit findings, and PR CI will no longer surface those failures. Low code risk but can impact release velocity if the audit produces new failures.

Overview
Shifts vulnerability gating from PR CI to release time. The npm audit --audit-level=high step is removed from .github/workflows/ci.yml, so pull-request checks no longer fail due to audit results.

Adds a release gate before any version/publish side effects. .github/workflows/release.yml now runs the same npm audit immediately after Setup and before version bumping, ensuring high/critical findings block the release workflow early.

Written by Cursor Bugbot for commit 1a468b3. This will update automatically on new commits. Configure here.

Bugbot already handles vulnerability scanning on PRs, making the
npm audit step in CI redundant and disruptive. Moving it to the
release workflow ensures high/critical CVEs block publishing without
blocking unrelated PRs.
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.

1 participant