Commit 9e6633e
committed
chore(release): verify SHA512 against actual archive (#687)
Add an independent SHA512 verification step to the release sync
workflow that re-downloads the GitHub release archive and recomputes
the digest before the reusable sync workflow commits a new portfile
to the vcpkg overlay registry.
The reusable sync workflow at kcenon/common_system already performs
this check internally (see kcenon/common_system#675, PR #676), but
adding a caller-side verify-archive job in this repo guards against
drift if the reusable workflow changes or is repointed in the future.
Implementation notes:
- File-based hashing (curl -o file, then sha512sum) instead of piping
curl into sha512sum, so a 404 cannot silently produce the empty-input
hash cf83e1357eefb8bdf...
- Explicit empty-input SHA512 sentinel guard
- Archive size sanity check (>= 1024 bytes)
- sync job depends on verify-archive via needs:, so a failed
verification halts the registry update before any commit
Audit summary:
- on-release-sync-registry.yml: hardened (this PR)
- All other workflows in this repo (ci.yml, sanitizers.yml,
benchmarks.yml, etc.): do not compute or write SHA512 to portfiles,
no change needed.
Closes #687
Part of kcenon/common_system#6741 parent 41a0431 commit 9e6633e
1 file changed
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
8 | 57 | | |
| 58 | + | |
9 | 59 | | |
10 | 60 | | |
11 | 61 | | |
| |||
0 commit comments