Repository navigation
EASのビルド設定を廃止し、GitHub ActionsでAndroidビルドを実行するワークフローに置き換え - #6446
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughEASの開発・本番ビルドワークフローと設定を削除し、GitHub ActionsでAndroidのdev/prod variantをビルドしてAABをartifact保存するワークフローを追加しました。環境変数、Sentry設定、署名情報もSecretsから設定します。 ChangesAndroidビルドワークフロー
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant BuildSecrets
participant Gradle
participant ArtifactStorage
GitHubActions->>BuildSecrets: 環境変数と署名情報を取得
BuildSecrets-->>GitHubActions: ビルド設定を返却
GitHubActions->>Gradle: variant別のbundleタスクを実行
Gradle-->>GitHubActions: AABを生成
GitHubActions->>ArtifactStorage: AABをアップロード
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
🧹 Nitpick comments (3)
.github/workflows/build_android.yml (3)
1-1: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winYAML の文字列値をダブルクォートで統一してください。
name、branch 名、variant、type、node-version、runs-on、if-no-files-foundなどに未引用の文字列があります。GitHub expression 内の'prodRelease'は expression 構文上必要なため、そのままで構いません。修正例
-name: Build Android +name: "Build Android" ... - - canary + - "canary" ... - default: devRelease + default: "devRelease" ... - type: choice + type: "choice" ... - - devRelease + - "devRelease" ... - node-version: 24 + node-version: "24"Based on learnings, workflow YAML strings should use double quotes; this is separate from JavaScript/TypeScript quote rules.
Also applies to: 6-7, 13-17, 20-20, 24-24, 28-28, 66-67, 74-75, 115-115
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/build_android.yml at line 1, Update the workflow YAML string values throughout the identified sections to use double quotes, including the workflow name, branch names, variants, type, node-version, runs-on, and if-no-files-found values. Preserve the single quotes around prodRelease inside the GitHub expression because they are required by expression syntax.Source: Learnings
52-52: 🔒 Security & Privacy | 🔵 Trivial | 🏗️ Heavy liftActions を immutable commit SHA に固定してください。
SSH 鍵、署名鍵、環境 Secrets を扱う workflow で、Actions を mutable な
@v4や@v0.9.1タグに依存しています。各 action を完全な commit SHA に固定し、Dependabot 等で更新を管理してください。Also applies to: 60-60, 64-64, 72-72, 78-78, 111-111
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/build_android.yml at line 52, Update every action reference in the build Android workflow, including webfactory/ssh-agent and the actions identified at the additional locations, from mutable version tags to full immutable commit SHAs. Preserve each action’s current version and configure Dependabot or the repository’s existing update mechanism to manage future SHA updates.
1-29: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winワークフローの運用手順を文書化してください。
この変更には、dry-run 手順、Node 24/Java 17/Gradle の前提条件、必要な Secrets、生成される
.env.local・Sentry・Gradle properties、GITHUB_TOKENの権限、サービスアカウントの有無が記載されていません。手動実行は署名付き AAB を生成するため dry-run ではない点も含め、README または workflow 冒頭に明記してください。As per coding guidelines, workflow updates must document dry-run instructions, prerequisites, secrets, environment variables, and service accounts.
Also applies to: 80-104
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/build_android.yml around lines 1 - 29, Document the Android workflow operation in the workflow header or README, covering dry-run steps, Node 24/Java 17/Gradle prerequisites, required secrets, generated .env.local and Sentry/Gradle properties, GITHUB_TOKEN permissions, and whether a service account is required. Explicitly state that manual workflow_dispatch runs produce signed AAB artifacts and are not dry-runs.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/build_android.yml:
- Around line 8-17: Restrict the prodRelease option in the workflow_dispatch
configuration so production builds cannot be manually started from arbitrary
refs. Enforce that prodRelease runs only from the master ref, or gate it through
a GitHub Environment with required reviewers and isolated production secrets,
while preserving the existing devRelease workflow.
- Around line 59-62: Update the Checkout step using actions/checkout@v4 to set
persist-credentials to false alongside the existing recursive submodules option,
ensuring the GITHUB_TOKEN is not retained in local Git configuration before
subsequent build scripts run.
- Around line 51-70: After the Checkout step completes recursive submodule
retrieval, update the workflow to remove the global GitHub SSH URL rewrite and
unset the SSH agent environment used by webfactory/ssh-agent before the npm ci
and Gradle steps run. Keep SSH configuration available through Checkout, but
ensure SSH_AUTH_SOCK and the url."[email protected]:".insteadOf setting no longer
persist afterward.
- Around line 80-104: Update the “Write .env.local (prod)” and “Write .env.local
(dev)” steps to pass secrets through step environment variables instead of
embedding them directly in run commands, preserving quotes, dollar signs,
backticks, and newlines. Update “Configure signing properties” to serialize the
secret values as valid Java properties, escaping #, =, and newlines before
writing gradle.properties.
- Around line 31-49: Update the “Determine build variant” step to pass
github.ref_name and github.event.inputs.variant through the step’s env variables
instead of interpolating them directly in the shell script. Read those
environment variables in the existing variant selection logic, validate that the
resulting variant is one of the supported values, and exit 1 for unexpected
values before emitting gradle_task, output_dir, and variant.
---
Nitpick comments:
In @.github/workflows/build_android.yml:
- Line 1: Update the workflow YAML string values throughout the identified
sections to use double quotes, including the workflow name, branch names,
variants, type, node-version, runs-on, and if-no-files-found values. Preserve
the single quotes around prodRelease inside the GitHub expression because they
are required by expression syntax.
- Line 52: Update every action reference in the build Android workflow,
including webfactory/ssh-agent and the actions identified at the additional
locations, from mutable version tags to full immutable commit SHAs. Preserve
each action’s current version and configure Dependabot or the repository’s
existing update mechanism to manage future SHA updates.
- Around line 1-29: Document the Android workflow operation in the workflow
header or README, covering dry-run steps, Node 24/Java 17/Gradle prerequisites,
required secrets, generated .env.local and Sentry/Gradle properties,
GITHUB_TOKEN permissions, and whether a service account is required. Explicitly
state that manual workflow_dispatch runs produce signed AAB artifacts and are
not dry-runs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0ccb74f1-ac9b-4c48-8f46-cc1f85bda89d
📒 Files selected for processing (4)
.eas/workflows/create-development-builds.yml.eas/workflows/create-production-builds.yml.github/workflows/build_android.ymleas.json
💤 Files with no reviewable changes (3)
- .eas/workflows/create-production-builds.yml
- .eas/workflows/create-development-builds.yml
- eas.json
Fixes Applied SuccessfullyFixed 1 file(s) based on 5 CodeRabbit feedback item(s). Files modified:
Commit: The latest autofix changes are on the |
|
@coderabbitai review |
✅ Action performedReview finished.
|
概要
変更の種類
変更内容
eas.json、.eas/workflows/create-development-builds.yml、.eas/workflows/create-production-builds.yml)を削除.github/workflows/build_android.ymlを追加canaryブランチへの push でdevRelease、masterブランチへの push でprodReleaseを自動ビルドworkflow_dispatchでビルドバリアントを選択して手動実行も可能.env.local・Sentry properties は GitHub Secrets(RELEASE_KEYSTORE/KEYSTORE_*/DOTENV_LOCAL/DOTENV_LOCAL_PRODUCTION/SENTRY_PROPERTIES_BASE64)から復元FONTS_SSH_KEYで checkoutテスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること省略:
src/配下などアプリ本体のコード変更が無いため関連Issue
スクリーンショット(任意)
Summary by CodeRabbit