ZERO-DEPENDENCY CI / PR GATE
Block Inaccessible Commits Before They Hit Production
Nearly 46% of federal ADA web defendants face repeat lawsuits because a later theme edit or marketing landing page re-introduces unlabeled buttons or missing alt attributes. Drop this 20-line workflow into .github/workflows/accessibility.yml to enforce an 85+ WCAG 2.2 AA baseline on every pull request for $0.
.github/workflows/accessibility.yml
name: AccessProof WCAG 2.2 AA & EAA Gate
on:
pull_request:
branches: [main]
jobs:
accessibility-source-gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Scan Preview Deployment via AccessProof API
env:
PREVIEW_URL: ${{ vars.PREVIEW_URL || 'https://your-staging-site.example.com' }}
run: |
RESP=$(curl -sS -X POST https://accessproofhq.vercel.app/api/scan \
-H "Content-Type: application/json" \
-d "{\"url\":\"$PREVIEW_URL\"}")
echo "$RESP"
SCORE=$(node -e "const r=JSON.parse(process.argv[1]); console.log(r.report?.score ?? 0)" "$RESP")
echo "WCAG Source Score: $SCORE/100"
if [ "$SCORE" -lt 85 ]; then
echo "Failing PR: WCAG 2.2 AA baseline score ($SCORE) is below 85."
exit 1
fiNeed Multi-Repo CI Gates + 50 Hosted Statement Portals?
Upgrade to the Agency 15-Site ($79/mo) or Scale 50-Site ($149/mo) Club for full VPAT/ACR workbooks and hosted barrier intake across every brand.