Lighthouse CI Github Actions problem & missing documentation

Dominik_Giroux
Shopify Partner
11 0 5

Hello, I've been playing around with the Github Lighthouse CI Action, however, there seem to be some errors.

This is the documentation I will be referring to.

Step 1 "Add your private app credentials to GitHub" doesn't mention which app permissions are required for this to work.

This now leads me to an error on the GitHub action itself

Screenshot 2021-07-17 3.00.02 PM.png

The syntax looks fine to me, it's a copy-paste from the documentation itself.

Could that be related to the missing app permissions?

Thank you

I had the same problem.

Just remove one tab in front of jobs and the following lines so it looks like this.

Also add read access to product_listings and products so you wont get more errors.

 

name: Shopify Lighthouse CI
on: [push]
jobs:
  lhci:
    name: Lighthouse
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Lighthouse
      uses: shopify/lighthouse-ci-action@1.0
      with:
        app_id: ${{ secrets.SHOP_APP_ID }}
        app_password: ${{ secrets.SHOP_APP_PASSWORD }}
        store: ${{ secrets.SHOP_STORE }}
        password: ${{ secrets.SHOP_PASSWORD }}

 

0 Likes