From f94239c6a4084039459b0ab980c6453c5e31aba8 Mon Sep 17 00:00:00 2001 From: Xuc Pan Date: Sat, 5 Sep 2026 13:53:10 +0800 Subject: [PATCH] fix(release): install nFPM from verified upstream archive Replace the nonexistent nfpm-action with the official pinned Linux archive and verify it against the upstream checksum before packaging. --- .github/workflows/release.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1415096..0db450b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,9 +30,16 @@ jobs: binutils-mingw-w64-x86-64 gcc libpipewire-0.3-dev \ gcc-mingw-w64-x86-64 pkg-config zstd - name: Install nFPM - uses: goreleaser/nfpm-action@v2 - with: - version: latest + env: + NFPM_VERSION: 2.47.0 + run: | + base="https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}" + archive="nfpm_${NFPM_VERSION}_Linux_x86_64.tar.gz" + curl -fsSLO "$base/$archive" + curl -fsSLO "$base/checksums.txt" + grep " $archive$" checksums.txt | sha256sum --check --strict + sudo tar -xzf "$archive" -C /usr/local/bin nfpm + nfpm --version - name: Build distribution packages run: ./packaging/build-packages.sh - name: Publish GitHub release assets