Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix critical release workflow issues identified in review

rcourtmand5e67d8e6be4
diff --git a/.github/workflows/validate-release-assets.yml b/.github/workflows/validate-release-assets.yml
index 3dd9d4acd4..a160372ff9 100644
--- a/.github/workflows/validate-release-assets.yml
+++ b/.github/workflows/validate-release-assets.yml
@@ -1,8 +1,11 @@
name: Validate Release Assets
on:
+ workflow_run:
+ workflows: ["Release"]
+ types: [completed]
release:
- types: [created, edited]
+ types: [edited] # Still validate on manual edits
jobs:
validate:
@@ -37,10 +40,9 @@ jobs:
mkdir -p release
cd release
- # Get list of all assets for this release
- ASSETS=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
- "https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets" \
- | jq -r '.[].browser_download_url')
+ # Get list of all assets for this release (using gh CLI to avoid token exposure)
+ ASSETS=$(gh api "repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets" \
+ --jq '.[].browser_download_url')
if [ -z "$ASSETS" ]; then
echo "::error::No assets found in release"
@@ -57,9 +59,9 @@ jobs:
if [ -n "$url" ]; then
filename=$(basename "$url")
echo "Downloading $filename..."
- curl -L -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
- -H "Accept: application/octet-stream" \
- -o "$filename" "$url"
+ # Use gh CLI to download (avoids token exposure in logs)
+ gh release download "${{ github.event.release.tag_name }}" \
+ --pattern "$filename" --dir . --clobber
if [ $? -eq 0 ]; then
echo "✓ Downloaded $filename ($(du -h "$filename" | cut -f1))"
diff --git a/scripts/build-release.sh b/scripts/build-release.sh
index 7f7bbbf2ec..d893697722 100755
--- a/scripts/build-release.sh
+++ b/scripts/build-release.sh
@@ -344,7 +344,8 @@ else
done
# Also generate combined checksums.txt for convenience
- sha256sum "${checksum_files[@]}" > checksums.txt
+ # Sort checksums by filename for deterministic output (prevents #671 checksum mismatches)
+ sha256sum "${checksum_files[@]}" | sort -k 2 > checksums.txt
if [ -n "${SIGNING_KEY_ID:-}" ]; then
if command -v gpg >/dev/null 2>&1; then
echo "Signing checksums with GPG key ${SIGNING_KEY_ID}..."