Skip to content

Commit cf39cb2

Browse files
committed
fix(aur): use privacy-safe release identity
1 parent 6e42d6c commit cf39cb2

4 files changed

Lines changed: 21 additions & 6 deletions

File tree

.agents/docs/2026-08-09-pr400-handoff-zh.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# PR #400 中文交接文档
22

3-
> 更新时间:2026-08-09 23:53 CST
4-
> 维护身份:`speak-agent`
5-
> 状态:Draft,尚未批准合并、尚未发布
3+
> 更新时间:2026-08-09 23:53 CST
4+
>
5+
> 维护身份:`speak-agent`
6+
>
7+
> 状态:Draft,尚未批准合并、尚未发布
68
> 本文只记录可公开的仓库事实;本地用户名、绝对工作区路径、临时目录、凭据和个人邮箱均有意省略。
79
810
## 1. 交接结论

scripts/aur/mcpp-bin/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Maintainer: mcpp-community <x.d2learn.org@gmail.com>
1+
# Maintainer: mcpp-community <speak-agent@users.noreply.github.com>
22
#
33
# mcpp-bin — prebuilt release binaries from GitHub, the same artifacts the
44
# upstream `install.sh` one-liner downloads. See scripts/aur/README.md for

scripts/aur/reconcile_mcpp_bin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
AUR_RPC_URL = "https://aur.archlinux.org/rpc/v5/info?arg[]=mcpp-bin"
3535
ARCH_IMAGE = "archlinux:base-devel"
3636
MANAGED_FILES = ("PKGBUILD", ".SRCINFO", "mcpp.sh")
37+
AUR_COMMIT_NAME = "speak-agent"
38+
AUR_COMMIT_EMAIL = "speak-agent@users.noreply.github.com"
3739
SIDECAR_RE = re.compile(r"^([0-9a-fA-F]{64})[ \t]+\*?(\S+)$")
3840
T = TypeVar("T")
3941

@@ -727,12 +729,12 @@ def publish_staged_repo(
727729
) -> tuple[str, int]:
728730
_run_or_classify(
729731
runner,
730-
["git", "config", "user.name", "mcpp-ci"],
732+
["git", "config", "user.name", AUR_COMMIT_NAME],
731733
cwd=clone_dir,
732734
)
733735
_run_or_classify(
734736
runner,
735-
["git", "config", "user.email", "x.d2learn.org@gmail.com"],
737+
["git", "config", "user.email", AUR_COMMIT_EMAIL],
736738
cwd=clone_dir,
737739
)
738740
_run_or_classify(

tests/scripts/test_aur_reconcile.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ def test_renderer_consumes_manifest_and_materializes_only_mcpp_bin(self) -> None
143143

144144
pkgbuild = (output / "PKGBUILD").read_text(encoding="utf-8")
145145
self.assertIn(f"pkgver={VERSION}", pkgbuild)
146+
self.assertIn(
147+
"# Maintainer: mcpp-community <speak-agent@users.noreply.github.com>",
148+
pkgbuild,
149+
)
146150
self.assertIn(self.desired.asset("linux", "x86_64").sha256, pkgbuild)
147151
self.assertIn(self.desired.asset("linux", "aarch64").sha256, pkgbuild)
148152
self.assertEqual(
@@ -311,6 +315,13 @@ def test_executable_automation_has_no_mcpp_m_path_or_publish_leg(self) -> None:
311315
self.assertNotIn("publish mcpp-m", text)
312316
self.assertNotIn("publish(mcpp-m", text)
313317

318+
def test_publish_uses_public_speak_agent_identity(self) -> None:
319+
self.assertEqual(reconcile.AUR_COMMIT_NAME, "speak-agent")
320+
self.assertEqual(
321+
reconcile.AUR_COMMIT_EMAIL,
322+
"speak-agent@users.noreply.github.com",
323+
)
324+
314325
def test_workflow_uses_pinned_host_key_and_recovery_triggers(self) -> None:
315326
workflow = (
316327
REPO_ROOT / ".github" / "workflows" / "aur-publish.yml"

0 commit comments

Comments
 (0)