Skip to content

ci: make release action references immutable - #1068

Merged
iruriQ merged 1 commit into
BytePioneer-AI:mainfrom
hhucz:ci/pin-release-android-actions
Nov 23, 2026
Merged

iruriQ merged 1 commit into
BytePioneer-AI:mainfrom
hhucz:ci/pin-release-android-actions

Conversation

@hhucz

@hhucz hhucz commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

What this implements

The release workflow now runs its Android setup actions from immutable commit SHAs rather than movable major-version tags:

  • actions/setup-java
  • android-actions/setup-android
  • gradle/actions/setup-gradle

Java 17, Android SDK packages, Gradle configuration, and release artifacts are unchanged.

The workflow contract is also aligned with the current release graph: package, npm publish, Android APK, and GitHub Release each check out the prepared immutable release commit.

Validation

  • Every external Action reference in the release workflow uses a 40-character commit SHA.
  • All four release build/publish jobs use needs.prepare.outputs.commit_sha.
  • Formatting and the full workflow contract test pass in CI.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • 维护
    • Android APK 发布流程改为使用固定提交版本的构建环境配置;Java、Android SDK 与 Gradle 的版本保持不变。

发布工作流将 Java、Android SDK 和 Gradle setup Action 从版本标签改为固定提交 SHA。Temurin 17、Android SDK 包配置和 Gradle setup 版本配置保持不变。测试将 needs.prepare.outputs.commit_sha 的引用次数预期从 3 更新为 4。

Changes: 发布工作流 Action 固定版本

Layer / File(s) Summary
固定 setup Action 引用
.github/workflows/release-packages.yml, packages/repository-automation/test/workflows.test.mjs
Java、Android SDK 和 Gradle setup Action 改用固定提交 SHA。测试将工作流中的 needs.prepare.outputs.commit_sha 引用次数预期更新为 4。

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: bytepioneer-ai

Merge Risk: Minimal · up to a7c48

This change pins the Android release workflow's setup Actions to immutable commit SHAs and keeps the Java, Android SDK and Gradle configuration unchanged. No concrete merge risk was found, and CI should confirm the workflow contract test passes.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed 标题“ci: make release action references immutable”概括了主要变更:发布工作流中的外部 Action 引用改为不可变的提交 SHA。变更摘要显示 release-packages.yml 中 setup-java、setup-android 和 setup-gradle 的引用已固定到提交 SHA,与标题一致。标题未提及 commit_sha 输出的调整…
Description check Passed 描述说明了工作流把 setup-java、setup-android 和 setup-gradle 改为固定提交 SHA 引用,并说明四个发布构建与发布作业改用 needs.prepare.outputs.commit_sha。这与变更摘要中的 release-packages.yml 修改以及 workflows.test.mjs 中 commit_sha 引用次数从 3 改为 4 的变更相符,…
Full details: Title check

Explanation

标题“ci: make release action references immutable”概括了主要变更:发布工作流中的外部 Action 引用改为不可变的提交 SHA。变更摘要显示 release-packages.yml 中 setup-java、setup-android 和 setup-gradle 的引用已固定到提交 SHA,与标题一致。标题未提及 commit_sha 输出的调整,但这属于次要细节,不影响判断。

Full details: Description check

Explanation

描述说明了工作流把 setup-java、setup-android 和 setup-gradle 改为固定提交 SHA 引用,并说明四个发布构建与发布作业改用 needs.prepare.outputs.commit_sha。这与变更摘要中的 release-packages.yml 修改以及 workflows.test.mjs 中 commit_sha 引用次数从 3 改为 4 的变更相符,描述与变更集相关。

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@hhucz
hhucz force-pushed the ci/pin-release-android-actions branch from a7c4802 to 32e45ce Compare November 23, 2026 02:34
@hhucz hhucz changed the title ci: pin release Android actions to immutable SHAs ci: make release action references immutable Nov 23, 2026
@iruriQ
iruriQ merged commit bb0e4ce into BytePioneer-AI:main Nov 23, 2026
7 of 8 checks passed
@iruriQ

iruriQ commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

感谢贡献!已核验 3 个发布工作流 Action SHA 均与上游 tag 一致,现已合入 main。

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.

2 participants