mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 17:08:38 +00:00
The wine job wrote https://dl.winehq.org/wine-builds/winehq.key straight into /etc/apt/keyrings and the translator-tests job piped https://apt.llvm.org/llvm-snapshot.gpg.key into gpg --dearmor, so apt trusted whatever key those URLs served that day. Every other download in CI is pinned (actions by commit, glslang by SHA-256, the Vulkan headers by commit). scripts/check_apt_key.py (standard library, gpg --show-keys) requires the downloaded file to hold exactly one primary key with the given fingerprint; both steps now download to a temporary file, check it against the fingerprint each project publishes (WineHQ D43F6401...672F, apt.llvm.org 6084F3CF...7421) and only then install it. tests/test_check_apt_key.py: the parser and the check with a stand-in gpg (the key, another key, two primary keys, subkeys, an unreadable file, no gpg), the command line, and a scan of .github/workflows that fails for a key download not checked right after (both of today's downloads fail it on the old workflows). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>