Skip to content

Commit 577de38

Browse files
dev-ecd-dmclaude
andcommitted
chore(ci): dogfood self-scan job gated with --fail-on high
Runs CSReview against its own repository on every PR (Semgrep installed, update check skipped) and fails the build when HIGH/CRITICAL findings remain — exercising the new CI gate end to end. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 7fd2bde commit 577de38

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,29 @@ jobs:
5757

5858
- name: Verify package contents
5959
run: npm pack --dry-run
60+
61+
self-scan:
62+
name: Self-scan (dogfood, --fail-on high)
63+
runs-on: ubuntu-latest
64+
timeout-minutes: 15
65+
66+
steps:
67+
- name: Checkout
68+
uses: actions/checkout@v5
69+
70+
- name: Setup Node.js
71+
uses: actions/setup-node@v5
72+
with:
73+
node-version: 24
74+
cache: npm
75+
cache-dependency-path: csreview/package-lock.json
76+
77+
- name: Install dependencies
78+
run: npm ci
79+
working-directory: csreview
80+
81+
- name: Install Semgrep
82+
run: python -m pip install --upgrade semgrep
83+
84+
- name: Run CSReview against its own repository
85+
run: node csreview/src/cli.js . --agent-name ci --no-update-check --fail-on high

0 commit comments

Comments
 (0)