Repository navigation
Forward each build workflow only the secrets it reads, pin the job containers by digest and drop the token from read-only checkouts - #4374
Conversation
The release draft handed the Windows, macOS and AppImage build workflows every secret of the repository with secrets: inherit, and the post publish tasks did the same for the anti virus allowlisting. Each callee now declares what it reads under workflow_call and each caller forwards exactly that: the signing material, the GPG key and the release token to the builders, the two allowlist accounts to the uploader. The AUR, Flathub, winget, Slack, Gist and Grafana tokens no longer travel into jobs that never use them. Direct runs of the builders (schedule, dispatch, push) are unchanged, they read the repository secrets as before.
The AUR and makepkg jobs ran inside archlinux:base-devel and the Flatpak build inside the freedesktop-26.08 runtime image, both pulled by tag, so a job ran whatever image was pushed under that tag last. The four sites now pull the image by its digest, with the tag kept for readability, so the build environment is the one that was reviewed. The digests are the multi architecture indexes current on 2026-11-02.
actions/checkout leaves the job token in .git/config by default, where every later step and tool can read it. Eighteen checkouts opt out. The three that check out the AUR and Flathub repositories with the cryptobot token keep it: those jobs commit and push to them from the clone.
|
No actionable comments were generated in the recent review.
|
Hi,
The release draft called the Windows, macOS and AppImage builders with
secrets: inherit, and the post-publish tasks did the same for the anti-virus allowlisting, so an installer signing job could also read the AUR, Flathub, winget and Slack tokens. Each callee now declares what it reads and each caller forwards exactly that.The Arch and Flatpak job containers were pulled by tag, the four sites now pull by digest with the tag kept for readability.
Eighteen checkouts stop persisting the token. The three that push to the AUR and Flathub repositories keep it.
Why: a compromised step in these jobs reaches the signing keys and publishing tokens, the way the tj-actions incident (CVE-2025-30066) did.
Judgment calls:
mac-dmg-x64.ymlsays do not edit, it got the same lines asmac-dmg.ymlso both stay copies.required: false, so direct runs keep working.gh actions-lock. Happy to add it in a follow-up if you want it.Found and fixed by Plumber's analysis, reviewed and submitted by me.