Skip to content

Commit 6659483

Browse files
SecAI-Hubclaude
andcommitted
Fix release: exclude large artifacts from GitHub Releases (>2GB limit)
GitHub Releases has a 2GB per-file limit. ISO/QCOW2/OVA files exceed this. Upload only their cosign signatures (.sig) to the release. The full images are available as workflow artifacts (90-day retention) or should be hosted on external storage for production distribution. Adds a step summary documenting which large artifacts were built and their sizes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 369b72c commit 6659483

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ jobs:
417417
env:
418418
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
419419

420-
- name: Create GitHub Release
420+
- name: Create GitHub Release (binaries + SBOMs + checksums)
421421
if: ${{ !inputs.dry_run }}
422422
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
423423
with:
@@ -429,11 +429,26 @@ jobs:
429429
dist/IMAGE_DIGEST
430430
dist/IMAGE_REF_PINNED
431431
dist/RELEASE_MANIFEST.json
432-
dist/secai-os-*.iso
433432
dist/secai-os-*.iso.sig
434-
dist/secai-os-*.qcow2
435433
dist/secai-os-*.qcow2.sig
436-
dist/secai-os-*.ova
437434
dist/secai-os-*.ova.sig
438435
generate_release_notes: true
439436
fail_on_unmatched_files: false
437+
438+
# ISO/QCOW2/OVA files are too large for GitHub Releases (>2GB limit).
439+
# Upload signatures only (above). The full images are available as
440+
# workflow artifacts or should be hosted on external storage.
441+
- name: Note on large artifacts
442+
if: ${{ !inputs.dry_run }}
443+
run: |
444+
echo "## Large Artifacts" >> "$GITHUB_STEP_SUMMARY"
445+
echo "" >> "$GITHUB_STEP_SUMMARY"
446+
echo "ISO/QCOW2/OVA files exceed GitHub Releases' 2GB limit." >> "$GITHUB_STEP_SUMMARY"
447+
echo "Their cosign signatures (.sig) are included in the release." >> "$GITHUB_STEP_SUMMARY"
448+
echo "Full images are available as workflow artifacts (90-day retention)." >> "$GITHUB_STEP_SUMMARY"
449+
for f in dist/secai-os-*.iso dist/secai-os-*.qcow2 dist/secai-os-*.ova; do
450+
[ -f "$f" ] || continue
451+
SIZE=$(stat -c%s "$f" 2>/dev/null || echo 0)
452+
SIZE_MB=$((SIZE / 1048576))
453+
echo " - $(basename "$f"): ${SIZE_MB} MB" >> "$GITHUB_STEP_SUMMARY"
454+
done

0 commit comments

Comments
 (0)