Website CI Gate
Add a squirrelscan check to CI so a pull request, a preview deploy or a release fails when the site gets worse: a score below a threshold, an error-severity finding, or findings that are new since the last audit.
This skill writes pipeline config and picks thresholds from a real baseline. It does not fix findings; use audit-website for that.
Before the first audit
Run squirrel --version. If it fails, install the CLI from squirrelscan.com/download (the squirrelscan skill has references/install.md). Then run squirrel auth status:
- Signed out, or
--offline: the audit runs on this machine, is free, and nothing is published. - Signed in: the audit is billed in credits (50 plus 2 per audited page, plus 1 per distinct external link the cloud verifies), adds the site to the user's dashboard, can turn on recurring audits and publishes an unlisted report. Tell the user the cost (
squirrel credits) and get a yes. Offer--offlineor--no-publish. For a site the user does not own, add--ephemeral: nothing is added to the dashboard, scheduled or published.
Every flag below is checked against the squirrel CLI docs (https://docs.squirrelscan.com/cli/audit). Rule docs: https://docs.squirrelscan.com/rules/{category}/{rule_id}.
CI runners are signed out unless SQUIRRELSCAN_API_KEY is set. A signed-out audit runs deterministic rules for free; an audit signed in with an org API key pays no audit or page charge, checks external links from the runner for free, and bills only cloud renders (2 credits per rendered page; --http renders nothing). Keep the key in the CI secret store, never in the repo.
Step 1: find the baseline
Installs: 2.3K | GitHub stars: 110 | First seen: 4 days ago


