-
Notifications
You must be signed in to change notification settings - Fork 33
Add group_by option to the accessibility scanner
#239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
taarikashenafi
wants to merge
9
commits into
main
Choose a base branch
from
group-by-option
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+307
−65
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
35ebacb
Add group_by option to consolidate scanner issues
taarikashenafi c1cf4d0
Remove comments
taarikashenafi 34581d4
Merge branch 'main' into group-by-option
taarikashenafi b61d801
Apply suggestions from code review
taarikashenafi 8997171
Address review feedback: scannerType-safe keys, GroupBy source of tru…
taarikashenafi 63eef9a
Update README.md
taarikashenafi 165e8cb
Merge branch 'main' of https://github.com/github/accessibility-scanne…
taarikashenafi 50bc06b
Merge branch 'main' of https://github.com/github/accessibility-scanne…
taarikashenafi f9a77a4
Fix openIssue array signature and category tests after merge
taarikashenafi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
taarikashenafi marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,54 @@ | ||
| name: "File" | ||
| description: "Files GitHub issues to track potential accessibility gaps." | ||
| name: 'File' | ||
| description: 'Files GitHub issues to track potential accessibility gaps.' | ||
|
|
||
| inputs: | ||
| findings_file: | ||
| description: "Path to a JSON file containing the list of potential accessibility gaps" | ||
| description: 'Path to a JSON file containing the list of potential accessibility gaps' | ||
| required: true | ||
| repository: | ||
| description: "Repository (with owner) to file issues in" | ||
| description: 'Repository (with owner) to file issues in' | ||
| required: true | ||
| token: | ||
| description: "Token with fine-grained permission 'issues: write'" | ||
| required: true | ||
| base_url: | ||
| description: "Optional base URL to pass into Octokit for the GitHub API (for example, `https://YOUR_HOSTNAME/api/v3` for GitHub Enterprise Server)" | ||
| description: 'Optional base URL to pass into Octokit for the GitHub API (for example, `https://YOUR_HOSTNAME/api/v3` for GitHub Enterprise Server)' | ||
| required: false | ||
| cached_filings_file: | ||
| description: "Path to a JSON file containing cached filings from previous runs. Without this, duplicate issues may be filed." | ||
| description: 'Path to a JSON file containing cached filings from previous runs. Without this, duplicate issues may be filed.' | ||
| required: false | ||
| screenshot_repository: | ||
| description: "Repository (with owner) where screenshots are stored on the gh-cache branch. Defaults to the 'repository' input if not set. Required if issues are open in a different repo to construct proper screenshot URLs." | ||
| required: false | ||
| open_grouped_issues: | ||
| description: "In the 'file' step, also open grouped issues which link to all issues with the same root cause" | ||
| required: false | ||
| default: "false" | ||
| default: 'false' | ||
| group_by: | ||
| description: "How to group findings into issues: 'finding' (one issue per violation, default), 'rule' (one issue per rule), or 'rule+url' (one issue per rule per scanned URL)." | ||
| required: false | ||
| default: 'finding' | ||
| dry_run: | ||
| description: "When true, log the issues that would be filed without opening, closing, or reopening any issues." | ||
| description: 'When true, log the issues that would be filed without opening, closing, or reopening any issues.' | ||
| required: false | ||
| default: "false" | ||
| default: 'false' | ||
| file_best_practice_issues: | ||
| description: "File issues for best-practice findings (accessibility recommendations that are not hard WCAG failures). Disabling only suppresses new issues; existing ones are left untouched." | ||
| description: 'File issues for best-practice findings (accessibility recommendations that are not hard WCAG failures). Disabling only suppresses new issues; existing ones are left untouched.' | ||
| required: false | ||
| default: "true" | ||
| default: 'true' | ||
| file_experimental_issues: | ||
| description: "File issues for experimental findings (checks that are not yet stable). Disabling only suppresses new issues; existing ones are left untouched." | ||
| description: 'File issues for experimental findings (checks that are not yet stable). Disabling only suppresses new issues; existing ones are left untouched.' | ||
| required: false | ||
| default: "true" | ||
| default: 'true' | ||
|
|
||
| outputs: | ||
| filings_file: | ||
| description: "Path to a JSON file containing the list of issues filed (and their associated finding(s))" | ||
| description: 'Path to a JSON file containing the list of issues filed (and their associated finding(s))' | ||
|
|
||
| runs: | ||
| using: "node24" | ||
| main: "bootstrap.js" | ||
| using: 'node24' | ||
| main: 'bootstrap.js' | ||
|
|
||
| branding: | ||
| icon: "compass" | ||
| color: "blue" | ||
| icon: 'compass' | ||
| color: 'blue' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| export const GROUP_BY_VALUES = ['finding', 'rule', 'rule+url'] as const | ||
|
|
||
| export type GroupBy = (typeof GROUP_BY_VALUES)[number] | ||
|
|
||
| export function isGroupBy(value: string): value is GroupBy { | ||
| return (GROUP_BY_VALUES as readonly string[]).includes(value) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.