From ccfb237ab9cbfc9e2e0e9771826e1abbd736a109 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Tue, 17 Nov 2026 17:10:03 -0600 Subject: [PATCH] ci: block pull requests only on critical advisories Same gate as release.yml. audit.yml still files an issue for moderate and up, and the full audit report prints in CI. Signed-off-by: Diego Resendez --- .github/workflows/ci.yml | 7 ++++++- .github/workflows/release.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7673c74..918e35f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,5 +19,10 @@ jobs: with: node-version: '22' - run: npm ci - - run: npm audit --audit-level=moderate + # Only a critical advisory blocks, as in release.yml. The site ships built files, not + # node_modules; a build-time advisory with no published fix would otherwise block every PR. + # audit.yml still files an issue for moderate and up, and the full report prints here. + - run: npm audit --audit-level=critical + - run: npm audit + continue-on-error: true - run: npm run check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac82651..1ab8148 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: # whether a fix is safe. What ships here is built HTML, CSS and JS: Astro, js-yaml # and friends are build-time tools that never reach a visitor. `critical` keeps a # tripwire for the catastrophic case without breaking releases on routine noise. - # Moderate and up still gate every PR in ci.yml, and audit.yml files an issue on a + # ci.yml gates every PR the same way, and audit.yml files an issue for moderate and up on a # schedule, so advisories still surface — just not as a broken release. - run: npm audit --audit-level=critical - run: npm run check