Repository navigation
CI: tag-driven TestFlight release pipeline (iOS + tvOS) - #31
Conversation
Pass github.event_name, github.ref_name, and inputs.version through the
step env: block instead of interpolating \${{ }} directly into the run:
shell body. GitHub expands expressions before the shell runs, so single
quotes offered no protection. Also switch GITHUB_OUTPUT writes to the
heredoc-delimiter form (value<<EOF) for robust output handling.
Applies to both ios and tvos jobs.
|
Warning Review limit reached
Next review available in: 50 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds a ChangesTestFlight Release Pipeline
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f057285733
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
docs/release/ci-release.md (1)
12-22: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAdd blank lines around the secrets table.
The table is missing a blank line before it (line 12 heading directly precedes line 13 table). This triggers markdownlint MD058.
## Required repository secrets + | Secret | Purpose | |---|---|🤖 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 `@docs/release/ci-release.md` around lines 12 - 22, The required repository secrets table is missing surrounding blank lines, causing the markdownlint MD058 violation. Update the docs/release/ci-release.md content so the section heading and the table in the required repository secrets area are separated by an empty line before and after the table, keeping the existing table content intact.Source: Linters/SAST tools
🤖 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/release.yml:
- Around line 19-22: The release workflow is hard-coding TestFlight to external
distribution, which overrides the lane’s intended default behavior. Update the
workflow’s env setup in the release job to stop setting TESTFLIGHT_DISTRIBUTION
to external; instead derive it from the release ref/input or leave it unset so
the Fastlane lane default can control distribution. Keep the existing workflow
symbols like env, TESTFLIGHT_DISTRIBUTION, and
TESTFLIGHT_NOTIFY_EXTERNAL_TESTERS as the places to adjust.
- Around line 13-17: The release workflow is missing an explicit permissions
block, so the jobs inherit broader default GITHUB_TOKEN scope than needed. Add a
workflow-level permissions declaration in the release workflow and set the token
to the minimum required, using the workflow’s existing structure around the
concurrency section so it still serializes releases while only allowing read
access to repository contents for checkout.
In `@fastlane/Fastfile`:
- Around line 65-67: The marketing_version_xcarg helper is directly
interpolating ENV["MARKETING_VERSION"] into xcodebuild arguments, so validate
that value before returning the xcargs fragment. Update marketing_version_xcarg
to only accept the expected dotted-number format and reject any input containing
spaces or extra build-setting tokens, so a manual dispatch value cannot inject
additional xcodebuild settings. Use the existing marketing_version_xcarg method
as the single place to sanitize the MARKETING_VERSION input before it is
appended to xcargs.
---
Nitpick comments:
In `@docs/release/ci-release.md`:
- Around line 12-22: The required repository secrets table is missing
surrounding blank lines, causing the markdownlint MD058 violation. Update the
docs/release/ci-release.md content so the section heading and the table in the
required repository secrets area are separated by an empty line before and after
the table, keeping the existing table content intact.
🪄 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 Plus
Run ID: a6c07d2f-69fb-4325-a8a2-4f028ab8f07a
⛔ Files ignored due to path filters (1)
Gemfile.lockis excluded by!**/*.lock
📒 Files selected for processing (7)
.github/workflows/release.yml.ruby-versiondocs/release/ci-release.mdfastlane/FastfileiosApp/scripts/strip-ffmpeg-framework-signatures.shscripts/ci/resolve-marketing-version.shscripts/ci/resolve-marketing-version.test.sh
💤 Files with no reviewable changes (1)
- iosApp/scripts/strip-ffmpeg-framework-signatures.sh
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f087fdecb4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # a global value would override both targets with the same profile. | ||
| # Per-target settings were written above via update_code_signing_settings. | ||
| xcargs: "CODE_SIGN_STYLE=Manual " \ | ||
| xcargs: "#{marketing_version_xcarg}" \ |
There was a problem hiding this comment.
Sync the Top Shelf extension version
When the tvOS lane runs for any release version other than 0.1.0, this new global MARKETING_VERSION only affects targets whose plist references $(MARKETING_VERSION). The host tvOS app does, but iosApp/TopShelf/Info.plist hard-codes CFBundleShortVersionString to 0.1.0, so the embedded .appex is packaged with a different short version and App Store Connect rejects the tvOS upload with a bundle-version mismatch. Make the extension plist use the same build settings before enabling this override.
Useful? React with 👍 / 👎.
What this adds
A GitHub Actions TestFlight release pipeline for the iOS + tvOS apps, driving the existing Fastlane lanes. Builds are deliberate and tag-driven — merges to
mainbuild nothing.Trigger model
v1.4.01.4.0v1.4.0-beta.21.4.0(suffix stripped)workflow_dispatchiOS job runs before tvOS (
needs: ios); aconcurrencygroup serializes releases so the per-platform build-number auto-increment can't race.Versioning
xcargs— the tag is the release version, no drift.project.yml's0.1.0stays as a local-dev default.latest_testflight_build_number + 1.Runner reproducibility (bare, ephemeral hosted runners)
Gemfile.lock+.ruby-version(3.2.9) soruby/setup-rubyresolves correctly.Cleanup
strip-ffmpeg-framework-signatures.sh(wired into nothing).Security
${{ }}interpolated into shell) to avoid injection. Nothing identifying is hardcoded — all inputs come from repository secrets.Before this can run (manual, credential-bound)
silo-certsmatch repo locally (fastlane match … --readonly false)docs/release/ci-release.md)1.4.0Full operator docs:
docs/release/ci-release.md.Summary by CodeRabbit
New Features
Documentation
Bug Fixes