fix(release): use Bash 3.2-safe artifact verifier (#1730)

This commit is contained in:
Carlos Florêncio
2026-07-16 12:31:31 +01:00
committed by GitHub
parent 3952e35c8d
commit c784dfcc91
5 changed files with 69 additions and 9 deletions
+26 -2
View File
@@ -585,6 +585,18 @@ jobs:
ref: ${{ needs.prepare.outputs.ref }}
persist-credentials: false
- name: Prepare desktop asset verifier
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
helper="$RUNNER_TEMP/verify-desktop-assets.sh"
gh api \
--header "Accept: application/vnd.github.raw+json" \
"repos/${{ github.repository }}/contents/scripts/release/verify-desktop-assets.sh?ref=${{ github.workflow_sha }}" \
> "$helper"
echo "DESKTOP_ASSET_VERIFIER=$helper" >> "$GITHUB_ENV"
- name: Prepare macOS desktop diagnostics helper
if: startsWith(matrix.platform, 'macos-')
continue-on-error: true
@@ -1056,7 +1068,7 @@ jobs:
exit 1
fi
scripts/release/verify-desktop-assets.sh "$out_dir" "${{ matrix.platform }}"
bash "$DESKTOP_ASSET_VERIFIER" "$out_dir" "${{ matrix.platform }}"
ls -lh "$out_dir"
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
@@ -1427,6 +1439,18 @@ jobs:
ref: ${{ needs.prepare.outputs.ref }}
fetch-depth: 0
- name: Prepare desktop asset verifier
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
helper="$RUNNER_TEMP/verify-desktop-assets.sh"
gh api \
--header "Accept: application/vnd.github.raw+json" \
"repos/${{ github.repository }}/contents/scripts/release/verify-desktop-assets.sh?ref=${{ github.workflow_sha }}" \
> "$helper"
echo "DESKTOP_ASSET_VERIFIER=$helper" >> "$GITHUB_ENV"
- name: Install updater signature verifier toolchain
run: rustup toolchain install 1.88.0 --profile minimal
@@ -1508,7 +1532,7 @@ jobs:
exit 1
fi
done
scripts/release/verify-desktop-assets.sh dist/release-assets
bash "$DESKTOP_ASSET_VERIFIER" dist/release-assets
ls -lh dist/release-assets
- name: Generate and verify updater manifest