Skip to content
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

Github pa11y workflow task sometimes fails #290

Open
chriswilty opened this issue Jan 6, 2025 · 0 comments
Open

Github pa11y workflow task sometimes fails #290

chriswilty opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@chriswilty
Copy link
Member

chriswilty commented Jan 6, 2025

Sometimes our accessibility workflow task fails with error "no usable sandbox":
https://github.com/ScottLogic/blog/pull/287/checks#annotation:13:9

This seems to be due to Ubuntu linux restricting unprivileged namespace access:
https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md

Going on the above (see section "Why does this only affect developer builds?"), using stable as release version rather than latest (which is the default) in the setup-chrome workflow config should fix the problem:
https://github.com/browser-actions/setup-chrome

While we are fixing that, we should also make use of the output from this action when invoking chrome in the subsequent "Run pa11y-ci" step. See https://github.com/browser-actions/setup-chrome?tab=readme-ov-file#installed-path

@chriswilty chriswilty added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant