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."