Dev.to WebDev 🛠 Dev 👁 0 📖 1 min read

How to Run Automated WCAG 2.2 AA & EU EAA Accessibility Checks on Every PR Without a Monthly SaaS Retainer

Most web teams find out about WCAG 2.2 Level AA or EU European Accessibility Act (Directive 2019/882) regressions only after a customer complains or an enterprise procurement audit fails. When we looked at adding automa

Most web teams find out about WCAG 2.2 Level AA or EU European Accessibility Act (Directive 2019/882) regressions only after a customer complains or an enterprise procurement audit fails.

When we looked at adding automated accessibility checks into CI/CD, two things kept getting in the way:

  1. Heavy monthly retainers ($300 to $1,000/mo) even for lean teams shipping a few pull requests a week.
  2. Unbounded cloud crawlers that can rack up surprise bills if a staging branch triggers repeated workflow loops.

A Zero-Dependency GitHub Action With a Hard Spend Cap

We built a pure Node 20 GitHub Action (syncforgecloud/accessfix-github-action@v1) backed by our pay-per-event AccessFix actor on Apify ($0.09 start + $0.49 per audited page + $0.09 per code fix suggestion).

Key engineering guardrails baked directly into the action:

  • Hard Spend Ceiling (max_cost_usd): Clamped between $0.50 and $25.00 per CI run and passed directly as maxTotalChargeUsd to Apify.
  • Strict SSRF Protection: Only public https:// URLs are accepted; localhost, RFC1918 private IPs, and cloud metadata endpoints (169.254.169.254) are blocked before any network call.
  • Automatic Token Masking: Immediately runs ::add-mask:: on APIFY_TOKEN so secrets never leak in PR logs.
  • Actionable PR Job Summary: Prints a Markdown table of critical findings plus links to exact #RRGGBB W3C contrast values and HTML/ARIA patches.

Drop-In Workflow (.github/workflows/accessfix-wcag.yml)

name: WCAG 2.2 & EU EAA Accessibility Check
on:
  pull_request:
    branches: [main]

jobs:
  accessibility-audit:
    runs-on: ubuntu-latest
    steps:
      - name: Run AccessFix WCAG 2.2 AA Audit
        uses: syncforgecloud/accessfix-github-action@v1        with:
          apify_token: ${{ secrets.APIFY_TOKEN }}
          urls: |
            https://your-staging-site.com
            https://your-staging-site.com/pricing
          max_pages: '5'
          max_cost_usd: '5.00'
          fail_on_critical: 'false'

Try It Live

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.