From 2d612bb98298243ad9a127e712c1911fdc932d05 Mon Sep 17 00:00:00 2001 From: KooshaPari Date: Fri, 7 Aug 2026 21:02:40 -0700 Subject: [PATCH] ci(trunk): install actionlint before custom lint command --- .github/workflows/trunk-check.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml index 3176240829f2..4c837ed0ecbd 100644 --- a/.github/workflows/trunk-check.yml +++ b/.github/workflows/trunk-check.yml @@ -28,6 +28,19 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + # The repository trunk config defines actionlint as a custom command. + # trunk-action does not install custom-command binaries, so provision + # the official binary before the check (otherwise every PR reports the + # misleading "Binary not found" failure). + - name: Install actionlint + shell: bash + run: | + set -euo pipefail + mkdir -p "$HOME/.local/bin" + bash <(curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) latest "$HOME/.local/bin" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + "$HOME/.local/bin/actionlint" -version + - name: Trunk Check uses: trunk-io/trunk-action@04ba50e7658c81db7356da96657e6e77f220bfa3 # embeds actions/cache@27d5ce7f (v5.0.5)