Official CanaryUsers GitHub Action — send the flock through every PR's preview deploy and get a UX score + top issues right in your CI.
# .github/workflows/ux-check.yml
name: UX Check
on:
push:
branches: [main]
pull_request:
jobs:
canary-ux:
runs-on: ubuntu-latest
steps:
- name: Deploy preview
id: deploy
# ... your existing deploy step ...
# outputs: preview-url
- name: CanaryUsers UX scan
uses: BrettonB/scan-action@v1
with:
url: ${{ steps.deploy.outputs.preview-url }}
token: ${{ secrets.CANARYUSERS_TOKEN }}
fail-on: off # or 'regression' to fail on critical issues| Input | Required | Default | Description |
|---|---|---|---|
url |
✅ | — | The URL to scan (preview deploy URL) |
token |
✅ | — | Your CanaryUsers API token (get it here) |
repo |
— | ${{ github.repository }} |
owner/name for first-run-free tracking |
fail-on |
— | off |
off / regression / score<NN |
timeout-minutes |
— | 5 |
Poll timeout |
| Output | Description |
|---|---|
scan-id |
The scan job ID |
score |
CanaryScore 0–100 |
grade |
Letter grade A–F |
report-url |
Full interactive report URL |
free-run |
true if this was the free first-run for this repo |
The first CI scan per repo is free — no credits needed. After that, scans debit from your monthly allotment. When you're out, the check stays green with a "upgrade to keep the flock on your PRs" note (never a red failure).
- Sign in at canaryusers.ai
- Open your Dashboard → the CI & API section
- Click Generate token and copy it (shown once)
- Add it as
CANARYUSERS_TOKENin your repo's Settings → Secrets and variables → Actions