A GitHub Action to lint for any accessibility issues in your pull requests.
Required Your API key for axe-linter.
Optional The URL for the axe-linter API. Defaults to https://axe-linter.deque.com
.
* To request an API key for axe-linter, please visit accessibility.deque.com/linter-contact-us. Once provisioned please visit https://docs.deque.com/linter/1.0.0/en/axe-linter-api-key to get your API key.
Create a file in your repository called .github/workflows/axe-linter.yml
with the following contents:
name: Lint for accessibility issues
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dequelabs/axe-linter-action@v1
with:
api_key: ${{ secrets.AXE_LINTER_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
There is a limitation on the amount of annotations that can be made per step.
- 10 warning annotations
- 10 error annotations
If there are more errors, they will not be reported. If you would like to view the errors please view the action logs.
Additional information can be found in this GitHub discussion.