You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Newline-delimited list of URLs to check for accessibility issues'
7
-
required: true
7
+
required: false
8
8
multiline: true
9
+
url_config:
10
+
description: "Stringified JSON array of URL config objects, each with a 'url' field and an optional 'excludeSelectors' field (array of CSS selectors to exclude from the Axe scan for that URL). When provided, takes precedence over the 'urls' input."
11
+
required: false
9
12
auth_context:
10
13
description: "Stringified JSON object containing 'username', 'password', 'cookies', and/or 'localStorage' from an authenticated session"
# color_scheme: light # Optional: Playwright color scheme configuration option
60
60
# scans: '["axe","reflow-scan"]' # Optional: An array of scans (or plugins) to be performed. If not provided, only Axe will be performed.
61
-
#exclude: '["iframe","#third-party-widget"]' # Optional: A JSON array of CSS selectors to exclude from the Axe scan.
61
+
#url_config: '[{"url":"https://example.com","excludeSelectors":["iframe","#widget"]}]' # Optional: Per-URL config with CSS selectors to exclude from the Axe scan. When provided, takes precedence over 'urls'.
62
62
```
63
63
64
64
> 👉 Update all `REPLACE_THIS` placeholders with your actual values. See [Action Inputs](#action-inputs) for details.
@@ -116,7 +116,7 @@ Trigger the workflow manually or automatically based on your configuration. The
|`urls`|Yes| Newline-delimited list of URLs to scan|`https://primer.style`<br>`https://primer.style/octicons`|
119
+
|`urls`|No*| Newline-delimited list of URLs to scan. Required unless `url_config` is provided.|`https://primer.style`<br>`https://primer.style/octicons`|
120
120
|`repository`| Yes | Repository (with owner) for issues and PRs |`primer/primer-docs`|
121
121
|`token`| Yes | PAT with write permissions (see above) |`${{ secrets.GH_TOKEN }}`|
122
122
|`cache_key`| Yes | Key for caching results across runs<br>Allowed: `A-Za-z0-9._/-`|`cached_results-primer.style-main.json`|
@@ -131,7 +131,7 @@ Trigger the workflow manually or automatically based on your configuration. The
131
131
|`reduced_motion`| No | Playwright `reducedMotion` setting for scan contexts. Allowed values: `reduce`, `no-preference`|`reduce`|
132
132
|`color_scheme`| No | Playwright `colorScheme` setting for scan contexts. Allowed values: `light`, `dark`, `no-preference`|`dark`|
133
133
|`scans`| No | An array of scans (or plugins) to be performed. If not provided, only Axe will be performed. |`'["axe", "reflow-scan", ...other plugins]'`|
134
-
|`exclude`| No | A stringified JSON array of CSS selectors to exclude from the Axe scan. Useful for iframes, third-party widgets, or user-generated content. |`'["iframe","#third-party-widget"]'`|
134
+
|`url_config`| No | A stringified JSON array of URL config objects. Each object must have a `url` field and may have an optional `excludeSelectors` field (array of CSS selectors to exclude from the Axe scan for that URL). When provided, takes precedence over the `urls` input. |`'[{"url":"https://example.com","excludeSelectors":["iframe","#widget"]}]'`|
Copy file name to clipboardExpand all lines: action.yml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,11 @@ description: 'Finds potential accessibility gaps, files GitHub issues to track t
4
4
inputs:
5
5
urls:
6
6
description: 'Newline-delimited list of URLs to check for accessibility issues'
7
-
required: true
7
+
required: false
8
8
multiline: true
9
+
url_config:
10
+
description: "Stringified JSON array of URL config objects, each with a 'url' field and an optional 'excludeSelectors' field (array of CSS selectors to exclude from the Axe scan for that URL). When provided, takes precedence over the 'urls' input."
11
+
required: false
9
12
repository:
10
13
description: 'Repository (with owner) to file issues in'
11
14
required: true
@@ -51,9 +54,6 @@ inputs:
51
54
scans:
52
55
description: 'Stringified JSON array of scans to perform. If not provided, only Axe will be performed'
53
56
required: false
54
-
exclude:
55
-
description: 'Stringified JSON array of CSS selectors to exclude from the Axe scan'
0 commit comments