Skip to content

fix(release): protected beta credential for automated Homebrew sync - #1202

Merged
appergb merged 1 commit into
betafrom
fix/homebrew-protected-sync-20261016
Oct 15, 2026
Merged

appergb merged 1 commit into
betafrom
fix/homebrew-protected-sync-20261016

Conversation

@appergb

@appergb appergb commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

处理实际保护规则,不扩大仓库豁免

发版前权限核验发现 Protect #beta 只允许 OrganizationAdmin bypass,且 Actions 默认权限 read、不能创建/审批 PR。原同步 job 使用 GITHUB_TOKEN 无法直接更新受保护分支。

  • checkout/push 改为优先使用专用 HOMEBREW_CASK_ADMIN_TOKEN,只需此仓库 Contents read/write,身份须为组织管理员。
  • 缺少凭据且确有 cask 更新时明确失败并提示;已由管理员同步时幂等通过。
  • 不修改分支保护、不上传或提取用户本机 Token、不把未推送写成同步成功。
  • 记录必要外部 Secret 配置,用户无需向聊天发送 Token。

本 PR 仅涉及默认分支的 Homebrew 发布自动化,不改已验收 App 生产逻辑或版本。已运行发布契约及日期 cask 契约;后续以此 PR CI 为门禁。

@appergb
appergb merged commit 830172b into beta Oct 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant