Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.39 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.39 KB

axe-linter-action

A GitHub Action to lint for any accessibility issues in your pull requests.

Input

api_key

Required Your API key for axe-linter.

axe_linter_url

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.

Example Usage

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 }}

Limitation

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.