From bf638d223fd5fd0f78df37a0d9d9554ff32d5a48 Mon Sep 17 00:00:00 2001 From: Mathias Grimm Date: Mon, 20 Jul 2026 15:36:57 -0300 Subject: [PATCH] Update the glimpse workflow to the current template The template changed upstream in glimpse-cli: since v1.3.0 the CLI falls back to a built-in public token when GLIMPSE_TOKEN is not available, so the check runs on fork pull requests too instead of being skipped. Co-Authored-By: Claude Fable 5 --- .github/workflows/glimpse.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/glimpse.yml b/.github/workflows/glimpse.yml index e63dade..1458b62 100644 --- a/.github/workflows/glimpse.yml +++ b/.github/workflows/glimpse.yml @@ -12,6 +12,9 @@ jobs: check-images: runs-on: ubuntu-latest env: + # Optional. Without it (for example on fork pull requests, which + # never receive secrets) the CLI uses its built-in public token, + # which only allows check and analyze and shares rate limits. GLIMPSE_TOKEN: ${{ secrets.GLIMPSE_TOKEN }} steps: - uses: actions/checkout@v6 @@ -20,8 +23,4 @@ jobs: composer global require --no-interaction --no-progress mathiasgrimm/glimpse-cli composer global config bin-dir --absolute --quiet >> "$GITHUB_PATH" - name: Check images - if: env.GLIMPSE_TOKEN != '' run: glimpse check . - - name: Skipped (no token) - if: env.GLIMPSE_TOKEN == '' - run: echo "::warning::GLIMPSE_TOKEN is not available (fork PR, or the secret is not set); image check skipped."