Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,9 @@ The following secrets need to be added to your GitHub repository for the workflo
- `LHCI_GITHUB_APP_TOKEN`: [Lighthouse GitHub app](https://github.com/apps/lighthouse-ci) token. Install the app on your repository to generate the token.
- `SHOPIFY_CLI_THEME_TOKEN`: Your Shopify CLI theme token. Follow https://shopify.dev/docs/storefronts/themes/tools/cli/ci-cd#step-1-get-a-theme-access-password-for-the-store

### Optional Secrets and Variables
The Lighthouse CI workflow accepts the following optional inputs:
- `SHOP_PASSWORD` (secret): Storefront password for password-protected stores.
- `SHOP_PRODUCT_HANDLE` (variable): Handle of the product page to audit. When set, the action skips the Admin API call used to look up the first published product, so `SHOP_ACCESS_TOKEN` no longer needs the `read_products` scope (a Theme Access token is enough).
- `SHOP_COLLECTION_HANDLE` (variable): Handle of the collection page to audit. Same effect as above for the collection lookup.

3 changes: 3 additions & 0 deletions github-workflows/lighthouse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
with:
store: ${{ secrets.SHOP_STORE }}
access_token: ${{ secrets.SHOP_ACCESS_TOKEN }}
password: ${{ secrets.SHOP_PASSWORD }}
product_handle: ${{ vars.SHOP_PRODUCT_HANDLE }}
collection_handle: ${{ vars.SHOP_COLLECTION_HANDLE }}
lhci_github_app_token: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
lhci_min_score_performance: 0.9
lhci_min_score_accessibility: 0.9