From 1224e35bd2b8902424351307a1be109d5e8400fb Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 25 Nov 2026 12:27:11 -0500 Subject: [PATCH 1/2] ci: use self-repository references for reusable workflows --- .github/workflows/ci.yml | 6 +++--- .github/workflows/lint.yml | 13 ++++++++++--- .github/workflows/release.yml | 8 ++++---- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66c5c5de4..0b57da637 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,13 +13,13 @@ permissions: {} jobs: lint: name: Lint App - uses: ./.github/workflows/lint.yml + uses: $/.github/workflows/lint.yml permissions: contents: read tests: name: Tests - uses: ./.github/workflows/test.yml + uses: $/.github/workflows/test.yml needs: lint permissions: contents: read @@ -28,7 +28,7 @@ jobs: build: name: Build - uses: ./.github/workflows/build.yml + uses: $/.github/workflows/build.yml needs: tests permissions: contents: read diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2f708dc3f..5e6911f5b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -49,9 +49,6 @@ jobs: persist-credentials: false sparse-checkout: .github/ - - name: GitHub Actions linter - uses: docker://rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667 - - name: Install GitHub Actions lockfile verifier run: gh extension install github/gh-actions-lock --pin "$GH_ACTIONS_LOCK_VERSION" env: @@ -63,3 +60,13 @@ jobs: run: gh actions-lock --verify env: GH_TOKEN: ${{ github.token }} + + # Remove this once actionlint supports $/ in reusable workflow calls + # (rhysd/actionlint#732). Verify the lockfile against the original files first. + - name: Normalize same-repository workflow calls for actionlint + run: | + sed -i -E 's|^( uses: )\$/\.github/workflows/|\1./.github/workflows/|' \ + .github/workflows/ci.yml .github/workflows/release.yml + + - name: GitHub Actions linter + uses: docker://rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8278e1e5..af63c7f60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -133,7 +133,7 @@ jobs: lint: name: Lint App - uses: ./.github/workflows/lint.yml + uses: $/.github/workflows/lint.yml needs: release-please if: ${{ needs.release-please.outputs.release_created == 'true' }} permissions: @@ -141,7 +141,7 @@ jobs: tests: name: Tests - uses: ./.github/workflows/test.yml + uses: $/.github/workflows/test.yml needs: lint permissions: contents: read @@ -150,7 +150,7 @@ jobs: publish: name: Publish - uses: ./.github/workflows/publish.yml + uses: $/.github/workflows/publish.yml needs: [release-please, tests] permissions: contents: write @@ -172,7 +172,7 @@ jobs: website: name: Website - uses: ./.github/workflows/website.yml + uses: $/.github/workflows/website.yml needs: publish permissions: {} secrets: From ebd9a68fe39cb8d0af2d8935495a1904a9164f05 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 25 Nov 2026 12:28:43 -0500 Subject: [PATCH 2/2] ci: scope actionlint ignores to self-repository calls --- .github/actionlint.yaml | 11 +++++++++++ .github/workflows/lint.yml | 13 +++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml index 8c64f23f9..207123473 100644 --- a/.github/actionlint.yaml +++ b/.github/actionlint.yaml @@ -11,3 +11,14 @@ self-hosted-runner: labels: - ubuntu-26.04-arm + +# WORKAROUND: actionlint 1.7.12 doesn't recognize the $/ reusable workflow +# syntax. Ignore only its format diagnostic for the migrated calls until +# rhysd/actionlint#732 ships in the pinned version. +paths: + .github/workflows/ci.yml: + ignore: + - '^reusable workflow call "\$/\.github/workflows/(build|lint|test)\.yml" at "uses" is not following the format ' + .github/workflows/release.yml: + ignore: + - '^reusable workflow call "\$/\.github/workflows/(lint|publish|test|website)\.yml" at "uses" is not following the format ' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5e6911f5b..2f708dc3f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -49,6 +49,9 @@ jobs: persist-credentials: false sparse-checkout: .github/ + - name: GitHub Actions linter + uses: docker://rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667 + - name: Install GitHub Actions lockfile verifier run: gh extension install github/gh-actions-lock --pin "$GH_ACTIONS_LOCK_VERSION" env: @@ -60,13 +63,3 @@ jobs: run: gh actions-lock --verify env: GH_TOKEN: ${{ github.token }} - - # Remove this once actionlint supports $/ in reusable workflow calls - # (rhysd/actionlint#732). Verify the lockfile against the original files first. - - name: Normalize same-repository workflow calls for actionlint - run: | - sed -i -E 's|^( uses: )\$/\.github/workflows/|\1./.github/workflows/|' \ - .github/workflows/ci.yml .github/workflows/release.yml - - - name: GitHub Actions linter - uses: docker://rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667