| title | GitHub Accessibility Scanner Integration |
|---|
This guide shows how to integrate GitHub's AI-powered Accessibility Scanner into your repository as part of your ACCESSIBILITY.md guardrails.
- Adds recurring and on-demand accessibility scans in GitHub Actions.
- Creates trackable issues for discovered barriers.
- Supports AI-assisted remediation workflows.
Use the official action:
github/accessibility-scanner@v2
Typical setup:
- Run on a schedule (for continuous monitoring).
- Optionally run on
workflow_dispatchfor manual scans. - Configure target URL, auth details (if needed), and repository token secret.
- Route findings into issues with your accessibility labels/taxonomy.
- Define severity handling in
ACCESSIBILITY.md(Critical/High/Medium/Low). - Require triage of scanner-created issues within your SLA window.
- Track scanner findings in your living metrics table.
- The scanner requires a token with appropriate repository permissions.
- The default
GITHUB_TOKENis not sufficient for this action's issue/PR workflows. - For authenticated scans, support login flows or provide persisted auth context.
Add language like this to your project manifest:
We run
github/accessibility-scanneron a recurring schedule and treat scanner findings as first-class accessibility defects. New high-severity regressions block release until resolved or explicitly waived.
After setting up the scanner, close the detect → fix loop by adding the complementary remediation workflow:
- Copy
examples/AGENT_REMEDIATION_WORKFLOW.ymlto.github/workflows/accessibility-remediation.yml. - When the scanner creates an issue labelled
accessibility, the remediation workflow fires automatically and passes the issue details to a Copilot coding agent. - The agent locates the offending code, applies a minimal fix, and opens a draft pull request linked to the original issue.
- A human reviews and merges the draft PR.
Requires a GitHub Copilot Individual, Business, or Enterprise subscription with the Copilot coding agent feature enabled and the repository setting Settings → Copilot → "Allow Copilot to create and approve pull requests" enabled.
See examples/COPILOT_REMEDIATION_AGENT_PROMPT.md
for the full structured agent task descriptions covering six common violation
types (image-alt, label, link-name, heading-order, color-contrast,
aria-required-attr).
- GitHub repository: https://github.com/github/accessibility-scanner