[PR #1024] [MERGED] Releases: the Mac mini builds them from a clean checkout #2998

Closed
opened 2026-11-02 16:00:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1024
Author: @ludovic111
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @ludovic111

Base: main ← Head: ci/release-clean-checkout


📝 Commits (1)

  • 622b9a3 Releases: the Mac mini builds them from a clean checkout

📊 Changes

2 files changed (+8 additions, -4 deletions)

View changed files

📝 .github/workflows/launcher.yml (+3 -2)
📝 .github/workflows/release.yml (+5 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Follow-up to the security review (security-1).

Why

The macOS build in release.yml and launcher.yml checked out with clean: false on the Mac mini, to keep target/ between runs. That work folder is shared with pull requests' parity jobs, so anything they left behind could end up in a release: target/, an untracked .cargo/config.toml, a build script's output.

What

  • release.yml and launcher.yml: clean: true on every runner. target/ is rebuilt from scratch on each release.
  • .local/ doesn't need keeping: tools/ci/vanilla-data.sh relinks it from the preparations it keeps outside the checkout ($RUNNER_WORKSPACE/shared-local).

Limits

This removes what a pull request leaves in the work folder by accident. It doesn't stop deliberate tampering by code running as the same user on the runner. docs/security.md (#1018) says so.

How tested

  • Dry runs on this branch (game and launcher). Links are in the comments below.
  • The cost is a full release build on the Mac mini instead of an incremental one. It stays within the job's 40-minute timeout; the dry run shows the time.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1024 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `ci/release-clean-checkout` --- ### 📝 Commits (1) - [`622b9a3`](https://github.com/horizon-rust/horizon/commit/622b9a3a953a370b49d528b9e4b2ea24bacce9e4) Releases: the Mac mini builds them from a clean checkout ### 📊 Changes **2 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/launcher.yml` (+3 -2) 📝 `.github/workflows/release.yml` (+5 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Follow-up to the security review (security-1). ## Why The macOS build in release.yml and launcher.yml checked out with `clean: false` on the Mac mini, to keep `target/` between runs. That work folder is shared with pull requests' parity jobs, so anything they left behind could end up in a release: `target/`, an untracked `.cargo/config.toml`, a build script's output. ## What - release.yml and launcher.yml: `clean: true` on every runner. `target/` is rebuilt from scratch on each release. - `.local/` doesn't need keeping: `tools/ci/vanilla-data.sh` relinks it from the preparations it keeps outside the checkout (`$RUNNER_WORKSPACE/shared-local`). ## Limits This removes what a pull request leaves in the work folder by accident. It doesn't stop deliberate tampering by code running as the same user on the runner. docs/security.md (#1018) says so. ## How tested - Dry runs on this branch (game and launcher). Links are in the comments below. - The cost is a full release build on the Mac mini instead of an incremental one. It stays within the job's 40-minute timeout; the dry run shows the time. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00:43 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2998
No description provided.