Files
raucao 5c8b7cc9b0
CI / test (push) Successful in 49s
release: pin the release key instead of scanning the keyring
`sign` fell back to "the first secret key in the keyring" whenever
REGENT_GPG_KEY was unset. On the release laptop that was an unrelated
key, so 0.9.0-0.9.2 were signed (tarball and tag) by it, and its
fingerprint was baked into the AUR recipe's `validpgpkeys`.

Pin the release key (RELEASE_KEY_FPR) and never scan the keyring. Fail
unless the key has a secret half and, without an explicit override,
unless it is the pin; log the uid before signing; assert the tag is
signed by that same key. The pin is Râu Cao <raucao@kosmos.org>, which
is on WKD and both keyservers, so makepkg can still fetch it.

Add build-aux/resign-release.sh to re-sign an already-published release
in place: the same tarball bytes (sha256 and every `sha256sums` stay
valid), the same commit re-tagged, and the signature, exported key and
PKGBUILD asset refreshed. It also regenerates the release's PKGBUILD
asset, because the published ones are stale: 0.9.0's is the initial
placeholder with `sha256sums=('SKIP' 'SKIP')` (no integrity check) and
0.9.1's is 0.9.0's recipe.

Also fix usage(), which printed only one line: sub() mutates $0, so the
second awk rule saw the stripped line and exited immediately.
2026-12-01 14:33:09 +04:00
..