Free and open source · MIT
Stop shipping accessibility regressions
Run the WCAGBrief scanner on every pull request. It fails the build when a change adds WCAG 2.2 AA problems and posts the findings to GitHub code scanning. One command, no account, nothing sent to us.
npx wcagbrief scan https://your-site.com --crawlGitHub Actions workflow
Save this as .github/workflows/accessibility.yml and point it at a deployed preview or staging URL. Findings appear in the Security tab and on the pull request.
name: Accessibility
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
security-events: write # lets the SARIF upload reach code scanning
jobs:
wcagbrief:
runs-on: ubuntu-latest # Chrome is preinstalled on GitHub-hosted runners
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Scan the staging site
run: >
npx --yes wcagbrief scan https://staging.example.com
--crawl --max-pages 20 --fail-on serious
--format sarif --out wcagbrief.sarif
--format html --out wcagbrief.html
- uses: github/codeql-action/upload-sarif@v4
if: always()
with:
sarif_file: wcagbrief.sarif
- uses: actions/upload-artifact@v4
if: always()
with:
name: wcagbrief-report
path: wcagbrief.htmlExisting site? Fail only on new problems
A baseline records what is already broken so the check blocks regressions without blocking every merge on day one.
# once, on main: record today's findings without failing
npx wcagbrief scan https://example.com --crawl --format json --out baseline.json --fail-on none
# on every pull request: fail only on findings that are NEW
npx wcagbrief scan https://staging.example.com --crawl --baseline baseline.jsonWhat a green build does and does not mean
Automated checks catch missing labels, low contrast, broken ARIA, small targets and similar machine-readable failures. They cannot judge keyboard order, meaningful alt text, captions or whether a flow makes sense. A passing scan is a regression guard, not a conformance claim. See the methodology.
Questions
- Is the CLI free?
- Yes. The wcagbrief command line scanner is MIT licensed and free to use in CI. It runs on your machine or runner and sends nothing to WCAGBrief.
- What does it check?
- The same engine as the WCAGBrief Chrome extension: axe-core plus extra WCAG 2.2 checks, mapped to WCAG 2.2, EN 301 549 and US ADA. Automated scanning finds roughly a third to a half of accessibility problems. Keyboard, focus order, captions and reading order still need a person.
- Will it fail my build on existing problems?
- Not if you use a baseline. Record the current findings once, then fail only on new ones.
- Which browser does it use?
- Google Chrome or Microsoft Edge already installed on the machine. GitHub-hosted Ubuntu runners include Chrome, so nothing is downloaded.
Need a report your client can read?
The CLI is for developers. The WCAGBrief extension turns the same findings into a branded client PDF and a conformance report. See the agency workflow.