How it works
Pages are checked on your CI machine, then compared with the last good run on your main branch, so only new issues count.
What happens in a run#
- The action starts your app (or uses your staging URL) and finds the pages to check.
- Each page is opened in Chrome and checked with the same WCAG 2.2 A and AA rules as GetWCAG scans, built on axe-core.
- Personal data is removed from the results on your machine, and the cleaned results are sent to GetWCAG.
- GetWCAG compares them with the baseline and returns what's new, fixed and still open.
- The action comments on the pull request and passes or fails the check.
During CI checks, GetWCAG's servers never visit your site: everything happens on your CI machine. Scans you run in the app are different: they visit your live site from GetWCAG's servers.
The baseline#
Runs on your baseline branch become the baseline: your default branch, like main or master, unless you pick another one in the CI checks tab. Pull requests are compared with it page by page.
- A run only becomes the baseline when at least half its pages could be checked, so a broken build never does.
- Each repository has its own baseline, even when repositories share a project.
- The first run has no baseline, so it only reports what it found. Comparisons start once your baseline branch has been checked.
- Project admins can reset a baseline, or use an earlier run on the baseline branch, from CI checks → Settings. The next good run on the baseline branch then becomes the new one.
Set the baseline without a merge
With workflow_dispatch in your workflow, open Actions → Accessibility → Run workflow, pick your baseline branch and run it. GitHub only shows that button when the workflow on your default branch includes workflow_dispatch.
Running it by hand on any other branch only reports what it found. It never becomes the baseline, so a feature branch can't hide its own issues.
Optional: refresh the baseline on a schedule
A safety net for when a run on your baseline branch failed or was skipped. GitHub runs schedules on your default branch only, so this helps when that's also your baseline branch.
on:
# ...your other triggers
schedule:
- cron: "0 6 * * 1" # every Monday at 06:00 UTCWhen the check fails#
By default the check fails when a pull request adds a new serious or critical issue. Change the level with fail-on, or set it to none to only comment. Issues that were already there, and pages that couldn't be checked, never fail it.
How pages are chosen#
You don't need to list your pages. On the copy of your site running in CI, the action:
- Finds your pages in your sitemap:
sitemap.xml, the onesrobots.txtnames, WordPress sitemaps and gzipped sitemaps. Without one, it follows links from your home page, two levels deep. For apps that build pages with JavaScript, it reads the links a real browser sees. - Groups them by kind of page.
/product/oak-chairand/product/sofause the same template, so checking a couple finds the same problems as checking all of them. Top-level pages like/pricingare each their own kind. - Checks a few of each kind, two by default, starting with your home page and the kinds with the most pages, up to your plan's pages per run. The same pages are picked every time, so pull requests are always compared on the same pages.
It only makes plain page requests to your own site. It never follows links that sign out, delete or unsubscribe, and it skips files like PDFs and images. When most pages have a language prefix (/en, /sv), it checks the main language only.
Pin the pages that matter most with pages: they're always checked first. Leave pages out with exclude, or set discover: false to check only the pages you list. The same lists can also be set in GetWCAG, without changing the repository: Settings.
Pages behind a login
Discovery can't sign in. You can pass headers, like a token for a preview environment. An npm package for Playwright, to check signed-in pages from your end-to-end tests, is coming next.
Re-runs#
A commit is checked once. Running the workflow again on the same commit shows that result without using another run from your plan. Clicking Re-run jobs in GitHub checks it again, also without using another run.
Plan limits#
Each plan includes a number of runs per month and pages per run, counted separately from your scans. When a project runs out, the check is skipped with a warning. It never fails your build. See pricing for each plan's limits.