From d345db2ed84752f228017b658ee756243c029d29 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Feb 2026 22:43:11 +0000 Subject: [PATCH] Fix lighthouse CI auth by removing unnecessary auth steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the "Setup GitHub CLI" and "Authenticate GitHub CLI" steps that are not used by the working deploy and validate workflows. Remove the LHCI_GITHUB_APP_TOKEN env var which references a non-existent secret. The gh CLI is pre-installed on ubuntu-latest and automatically uses the GH_TOKEN env var — no explicit gh auth login is needed, matching the pattern used by deploy.yml and validate.yml. https://claude.ai/code/session_01U1HYSJ2cRcy99YsBjfjqgd --- .github/workflows/lighthouse.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 1c4a68a..11ada9b 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -24,27 +24,9 @@ jobs: - name: Install dependencies run: bun install - - name: Setup GitHub CLI - run: | - type -p gh >/dev/null || ( - type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y) - curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg - sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null - sudo apt update - sudo apt install gh -y - ) - - - name: Authenticate GitHub CLI - env: - GH_TOKEN: ${{ github.token }} - run: | - echo $GH_TOKEN | gh auth login --with-token - - name: Run Lighthouse CI env: GH_TOKEN: ${{ github.token }} - LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} run: bun run test:lighthouse - name: Upload Lighthouse results