github / github/accessibility-scanner

Accessibility scanner action flags GitHub's own /pages/auth infrastructure page (Actions)

未关闭
#210 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
369
派生
40
平均合并
1 天 9 小时
30 天内合并 PR
10

描述

When running the scanner action on a private GitHub Pages site, the scanner flags an axe _page-has-heading-one_ violation on the URL `/pages/auth`. This page is GitHub's own built-in authentication page (the login gate for private GitHub Pages sites), not a page a user can author or control.

The scanned element contains attributes like `data-turbo-loaded`, `data-color-mode`, `data-a11y-animated-images`, and `js-focus-visible`, which confirm it is GitHub's own UI, not user content. We cannot fix this violation because we do not own the page.

In our case, this triggered 30 duplicate pull requests in our repository (as we ran on a list of URLs), all attempting to create a pages/auth.html file that has no effect on the actual scanned page.

Request:

Please either
- (1) fix the accessibility violation on GitHub's own /pages/auth page, or
- (2) update the github/accessibility-scanner action to exclude GitHub-infrastructure URLs from its scan scope by default, or
- document how to configure URL exclusions for these pages

The private repo with CoPilot's attempts to fix the issue:
https://github.com/mcdonalds-corp-new/ally/pull/84

URL of the workflow run:
https://github.com/mcdonalds-corp-new/ally/actions/runs/24263521708/job/70852992850

Error message:
Set issue Accessibility issue: Heading levels should only increase by one on /pages/auth (mcdonalds-corp-new/ally#25) state to closed Set issue Accessibility issue: Page should contain a level-one heading on /pages/auth (mcdonalds-corp-new/ally#26) state to closed

Workflow file and workflow run log attached.

[gh-a11y-scanner.yml](https://github.com/user-attachments/files/27214881/gh-a11y-scanner.yml)

[logs_64167249977.zip](https://github.com/user-attachments/files/27214893/logs_64167249977.zip)

贡献指南

打开贡献指南

调研方向

从附加的 gh-a11y-scanner.yml 和工作流日志开始,追踪 /pages/auth 是如何被发现、扫描和报告的。检查 scanner 的 URL 范围或排除配置,并在可能的情况下复现 false positive。完成的标准是:GitHub 基础设施页面无需用户创建的修复即可得到处理,无论是通过 scanner 的行为还是通过有文档记录的配置。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
accessibility, ci-cd
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。