From 424626e683c854ed4064b7e3640913384b42a215 Mon Sep 17 00:00:00 2001 From: tehw0lf Date: Wed, 24 Jun 2026 22:30:29 +0200 Subject: [PATCH 1/2] fix(lint): use PR sha when linting within workflows repo, main for external repos --- .github/workflows/lint.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 728b1c5..f14a65c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,16 +28,18 @@ jobs: if [ "$REPO" = "tehw0lf/workflows" ]; then echo "is_workflow_repo=true" >> $GITHUB_OUTPUT echo "::notice::Running in workflows repository - write mode enabled" + echo "workflows_ref=${{ github.sha }}" >> $GITHUB_OUTPUT else echo "is_workflow_repo=false" >> $GITHUB_OUTPUT echo "::notice::Running in external repository - read-only mode" + echo "workflows_ref=main" >> $GITHUB_OUTPUT fi - name: Checkout workflow repository uses: actions/checkout@v7 with: repository: tehw0lf/workflows - ref: main + ref: ${{ steps.context.outputs.workflows_ref }} path: workflows-repo - name: Generate workflow hash for cache key From bc2ab98aa9b3f78d6a934e40d6202f14898ea960 Mon Sep 17 00:00:00 2001 From: tehw0lf Date: Thu, 25 Jun 2026 17:15:47 +0200 Subject: [PATCH 2/2] fix(lighthouse): use newline-separated URLs and checkout@v4 The treosh/lighthouse-ci-action urls input expects newline-separated strings, not a JSON array. Passing a JSON array caused INVALID_URL errors. Also fix actions/checkout from v6 (nonexistent) to v4. --- .github/workflows/lighthouse-scan.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lighthouse-scan.yml b/.github/workflows/lighthouse-scan.yml index f6c4020..1444e81 100644 --- a/.github/workflows/lighthouse-scan.yml +++ b/.github/workflows/lighthouse-scan.yml @@ -33,7 +33,7 @@ jobs: outputs: lighthouse_result: ${{ steps.audit.outcome }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 - name: build urls list id: urls @@ -41,11 +41,16 @@ jobs: BASE_URL="${{ inputs.target_url }}" EXTRA='${{ inputs.urls }}' if [ -n "$EXTRA" ]; then - URLS=$(echo "$EXTRA" | jq -c ". + [\"$BASE_URL\"]") + URLS=$(echo "$EXTRA" | jq -r '.[]') + URLS="$BASE_URL"$'\n'"$URLS" else - URLS="[\"$BASE_URL\"]" + URLS="$BASE_URL" fi - echo "urls=$URLS" >> $GITHUB_OUTPUT + { + echo "urls<> $GITHUB_OUTPUT - name: run lighthouse id: audit