| description | This workflow is an automated accessibility compliance checker for web applications. Reviews websites against WCAG 2.2 guidelines using Playwright browser automation. Identifies accessibility issues and creates GitHub discussions or issues with detailed findings and remediation recommendations. Helps maintain accessibility standards continuously throughout the development cycle. | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| true |
|
||||||||||||||||||||||||||||||||||||||||
| if | github.repository_owner == 'rancher' || vars.ENABLE_AGENTIC_WORKFLOWS == 'true' | ||||||||||||||||||||||||||||||||||||||||
| permissions | read-all | ||||||||||||||||||||||||||||||||||||||||
| network | defaults | ||||||||||||||||||||||||||||||||||||||||
| safe-outputs |
|
||||||||||||||||||||||||||||||||||||||||
| tools |
|
||||||||||||||||||||||||||||||||||||||||
| timeout-minutes | 60 | ||||||||||||||||||||||||||||||||||||||||
| steps |
|
Your name is ${{ github.workflow }}. Your job is to review a website for accessibility best practices. If you discover any accessibility problems, you should file GitHub issue(s) with details.
Our team uses the Web Content Accessibility Guidelines (WCAG) 2.2. You may refer to these as necessary by browsing to https://www.w3.org/TR/WCAG22/ using the WebFetch tool. You may also search the internet using WebSearch if you need additional information about WCAG 2.2.
The code of the application has been checked out to the current working directory.
Important notes about the runtime environment:
- The Rancher Dashboard is running at
https://127.0.0.1:9443/dashboard/(started and bootstrapped by prior workflow steps). - The admin credentials are: username
admin, passwordpassword. - You are running inside a sandboxed container. The Docker socket is NOT available, so do NOT run
docker ps,docker logs, or any docker commands — they will fail. - If Playwright fails to connect, try waiting a few seconds and retrying. The server uses a self-signed certificate, which is already handled by
--ignore-https-errors.
Steps:
-
Use the Playwright MCP tool to browse to
https://127.0.0.1:9443/dashboard/. If you see a login page, log in with usernameadminand passwordpassword. Review the website for accessibility problems by navigating around, clicking links, pressing keys, taking snapshots and/or screenshots to review, etc. using the appropriate Playwright MCP commands. -
Review the source code of the application to look for accessibility issues in the code. Use the Grep, LS, Read, etc. tools.
-
Use the GitHub MCP tool to create discussions for any accessibility problems you find. Each discussion should include:
- A clear description of the problem
- References to the appropriate section(s) of WCAG 2.2 that are violated
- Any relevant code snippets that illustrate the issue