Repository navigation
feat(ci): Add CI builds - #1
brettpetch wants to merge 3 commits into
Conversation
Replace ephemeral workflow artifacts with GitHub Releases: tagged pushes
(v*) create full releases marked latest, main branch pushes create
prereleases tagged v{version}-{sha}. Upgrade all actions past the
Node.js 20 deprecation deadline (checkout v6, setup-java v5,
setup-gradle v6). Fix keystore decode condition, prefix artifacts to
prevent ABI-split filename collisions, and add concurrency grouping.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
secrets context is not available in step if-expressions. Move the secret to job-level env so env.KEYSTORE_BASE64 is resolvable. Co-Authored-By: Claude Opus 4.6 <[email protected]>
📝 WalkthroughWalkthroughNew GitHub Actions workflow for automated Android app and TV module builds on pushes, tags, PRs, and manual dispatch. On push events, generated APKs and AABs are collected, a release tag is computed (direct for version tags, prerelease for main pushes), and a GitHub release is created via ChangesAndroid Build and Release Workflow
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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.
Actionable comments posted: 6
🧹 Nitpick comments (3)
.github/workflows/android-build.yml (3)
40-62: 💤 Low valueConsider refactoring duplicated environment variables.
The signing environment variables are repeated identically across three build steps. While functionally correct, this creates maintenance burden. Consider either:
- Setting them once at job level (if all steps need them), or
- Using YAML anchors/references if GitHub Actions supported them (they don't currently)
Since GitHub Actions doesn't support anchors, the current approach is acceptable but be aware that changes to signing variables must be applied in three places.
🤖 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/android-build.yml around lines 40 - 62, The three steps "Build mobile APKs", "Build TV APKs", and "Build App Bundles" duplicate the same signing env vars (SIGNING_STORE_FILE, SIGNING_STORE_PASSWORD, SIGNING_KEY_ALIAS, SIGNING_KEY_PASSWORD); move these variables to the job-level env so all steps inherit them (or document why step-level is required) by removing the repeated env blocks from the :androidApp:assembleDebug/:androidApp:assembleRelease, :androidTvApp:assembleDebug/:androidTvApp:assembleRelease, and :androidApp:bundleRelease/:androidTvApp:bundleRelease steps and defining the four SIGNING_* keys once under the job's env configuration.
116-120: ⚖️ Poor tradeoffRelease creation is not idempotent.
If the
gh release createcommand fails after creating the tag (e.g., network error during artifact upload), rerunning the workflow will fail with "release already exists." Consider adding idempotency by checking if the release exists first, or usinggh release uploadto append artifacts to an existing release.♻️ Example idempotent approach
if gh release view "${RELEASE_TAG}" >/dev/null 2>&1; then echo "Release ${RELEASE_TAG} already exists, uploading artifacts..." gh release upload "${RELEASE_TAG}" release-artifacts/* else gh release create "${RELEASE_TAG}" \ --title "${RELEASE_TITLE}" \ --generate-notes \ $PRERELEASE_FLAG \ release-artifacts/* fi🤖 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/android-build.yml around lines 116 - 120, The release creation step using the gh release create command is not idempotent and can fail if the tag exists but artifact upload previously failed; update the workflow to first check for an existing release using gh release view with the tag from steps.release-tag.outputs.tag and, if it exists, call gh release upload to append artifacts, otherwise call gh release create as currently written (preserve --title, --generate-notes and $PRERELEASE_FLAG). Ensure you reference the same tag/title variables (steps.release-tag.outputs.tag and steps.release-tag.outputs.title) and handle both branches so the job can be safely re-run.
97-97: ⚡ Quick winVersion extraction is fragile to formatting changes.
The
grep | sedpipeline assumes a specific format (versionName = "X.Y.Z"). If the build.gradle.kts formatting changes (e.g., adding line breaks, changing quotes, or using string templates), this will break.Consider using Gradle's project properties directly:
♻️ Alternative: Extract version via Gradle task
Create a one-line Gradle task in the build step:
VERSION=$(./gradlew -q :androidApp:properties | grep '^version:' | awk '{print $2}')Or add a custom task to print versionName:
// In androidApp/build.gradle.kts tasks.register("printVersion") { doLast { println(android.defaultConfig.versionName) } }Then in workflow:
VERSION=$(./gradlew -q :androidApp:printVersion | tail -1)🤖 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/android-build.yml at line 97, The current VERSION extraction using grep/sed is brittle; replace it with a Gradle-backed approach that queries the project properties or a small Gradle task instead. Update the workflow to run ./gradlew -q :androidApp:properties and parse the "version:" property, or add a printVersion task (tasks.register("printVersion") that prints android.defaultConfig.versionName) in androidApp/build.gradle.kts and invoke ./gradlew -q :androidApp:printVersion then capture the last line into VERSION; ensure the workflow uses that output instead of the grep/sed pipeline.
🤖 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/android-build.yml:
- Line 25: Replace tag-pinned GitHub Actions with immutable commit SHAs: update
the uses fields for actions/checkout@v6, actions/setup-java@v5, and
gradle/actions/setup-gradle@v6 to their corresponding commit SHAs (found via the
action repo Releases/Tags page or `gh release view` / `gh repo view` to resolve
the tag to a SHA), and update the workflow file so each uses entry points to the
full SHA string instead of the tag; add a short comment noting to use Dependabot
to keep SHAs up to date if desired.
- Line 25: The workflow step using the actions/checkout@v6 action currently
leaves Git credentials persisted in the workspace; update the checkout step (the
uses: actions/checkout@v6 entry) to include persist-credentials: false so
credentials are not stored in the workspace and cannot be leaked to subsequent
build steps or third-party scripts.
- Around line 64-85: The artifact collection step "Collect build artifacts"
loops over glob patterns like androidApp/build/outputs/apk/debug/*.apk and may
pass literal patterns to cp when no files match; enable bash nullglob (shopt -s
nullglob) at the start of that step or add a guard that checks for file
existence before calling cp (e.g., test -e "$f" or iterate only if the glob
expands) so empty globs are skipped and the workflow reports missing artifacts
cleanly.
- Around line 105-120: Create release step uses unquoted step outputs and
variables in shell, which can lead to injection; fix by quoting all template
expansions and shell variables used in the gh release create command and
assignments. Specifically, in the "Create release" step reference the outputs
from release-tag (steps.release-tag.outputs.tag and .title) inside quotes when
passed to gh, ensure PRERELEASE_FLAG is referenced as a quoted variable when
passed (e.g., use "$PRERELEASE_FLAG"), and quote any positional arguments like
the artifacts pattern or expand them safely; also ensure any variable
assignments that use expansions are wrapped in quotes to avoid word-splitting.
- Around line 91-92: Quote all GitHub Actions template expansions when used in
shell contexts to prevent shell injection: update the if condition that uses
"${{ github.ref }}" and the TAG assignment using "${{ github.ref_name }}" to use
quoted expansions (i.e., ensure the conditional is if [[ "${{ github.ref }}" ==
"refs/tags/v*" ]] and TAG is assigned from a quoted expansion) and move these
template values (github.ref, github.ref_name) into step-level environment
variables instead of inline expansion; apply the same change for github.sha (use
a quoted env var reference) so all uses reference env variables and are quoted
in shell tests/assignments.
- Around line 36-46: The build workflow decodes a release.keystore but Gradle
files (androidApp/build.gradle.kts and androidTvApp/build.gradle.kts) never
consume SIGNING_STORE_FILE or the SIGNING_* env vars, so assembleRelease will be
unsigned; add a signingConfigs block (e.g., signingConfigs["release"]) that
references the keystore file path (use the SIGNING_STORE_FILE env or
${github.workspace}/release.keystore) and the SIGNING_STORE_PASSWORD,
SIGNING_KEY_ALIAS, SIGNING_KEY_PASSWORD env vars, then wire that signing config
into buildTypes { release { signingConfig = signingConfigs["release"] } } (or
the AGP injected-signing equivalent) in both androidApp/build.gradle.kts and
androidTvApp/build.gradle.kts so the workflow-provided keystore is used for
release signing.
---
Nitpick comments:
In @.github/workflows/android-build.yml:
- Around line 40-62: The three steps "Build mobile APKs", "Build TV APKs", and
"Build App Bundles" duplicate the same signing env vars (SIGNING_STORE_FILE,
SIGNING_STORE_PASSWORD, SIGNING_KEY_ALIAS, SIGNING_KEY_PASSWORD); move these
variables to the job-level env so all steps inherit them (or document why
step-level is required) by removing the repeated env blocks from the
:androidApp:assembleDebug/:androidApp:assembleRelease,
:androidTvApp:assembleDebug/:androidTvApp:assembleRelease, and
:androidApp:bundleRelease/:androidTvApp:bundleRelease steps and defining the
four SIGNING_* keys once under the job's env configuration.
- Around line 116-120: The release creation step using the gh release create
command is not idempotent and can fail if the tag exists but artifact upload
previously failed; update the workflow to first check for an existing release
using gh release view with the tag from steps.release-tag.outputs.tag and, if it
exists, call gh release upload to append artifacts, otherwise call gh release
create as currently written (preserve --title, --generate-notes and
$PRERELEASE_FLAG). Ensure you reference the same tag/title variables
(steps.release-tag.outputs.tag and steps.release-tag.outputs.title) and handle
both branches so the job can be safely re-run.
- Line 97: The current VERSION extraction using grep/sed is brittle; replace it
with a Gradle-backed approach that queries the project properties or a small
Gradle task instead. Update the workflow to run ./gradlew -q
:androidApp:properties and parse the "version:" property, or add a printVersion
task (tasks.register("printVersion") that prints
android.defaultConfig.versionName) in androidApp/build.gradle.kts and invoke
./gradlew -q :androidApp:printVersion then capture the last line into VERSION;
ensure the workflow uses that output instead of the grep/sed pipeline.
🪄 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: 5f921bc9-c22f-40cd-805a-b82623bce618
📒 Files selected for processing (1)
.github/workflows/android-build.yml
| KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 |
There was a problem hiding this comment.
Pin actions to commit SHAs instead of tags.
Actions pinned to tags (v6, v5) can be updated by maintainers, introducing supply-chain risk. Pin to immutable commit SHAs and use Dependabot to keep them current.
🔒 Example of SHA-pinned actions
- - uses: actions/checkout@v6
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v6.2.0Apply the same pattern to setup-java@v5 and gradle/actions/setup-gradle@v6. Use the GitHub UI or gh CLI to resolve current SHA for each tag.
Also applies to: 28-28, 34-34
🧰 Tools
🪛 zizmor (1.25.2)
[warning] 25-25: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 25-25: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 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/android-build.yml at line 25, Replace tag-pinned GitHub
Actions with immutable commit SHAs: update the uses fields for
actions/checkout@v6, actions/setup-java@v5, and gradle/actions/setup-gradle@v6
to their corresponding commit SHAs (found via the action repo Releases/Tags page
or `gh release view` / `gh repo view` to resolve the tag to a SHA), and update
the workflow file so each uses entry points to the full SHA string instead of
the tag; add a short comment noting to use Dependabot to keep SHAs up to date if
desired.
Source: Linters/SAST tools
Add persist-credentials: false to prevent credential leakage.
Git credentials are persisted in the workspace by default and could be accessed by malicious build scripts or dependencies.
🔒 Proposed fix
- - uses: actions/checkout@v6
+ - uses: actions/checkout@v6
+ with:
+ persist-credentials: false📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| - uses: actions/checkout@v6 | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false |
🧰 Tools
🪛 zizmor (1.25.2)
[warning] 25-25: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 25-25: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 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/android-build.yml at line 25, The workflow step using the
actions/checkout@v6 action currently leaves Git credentials persisted in the
workspace; update the checkout step (the uses: actions/checkout@v6 entry) to
include persist-credentials: false so credentials are not stored in the
workspace and cannot be leaked to subsequent build steps or third-party scripts.
Source: Linters/SAST tools
| - name: Decode keystore | ||
| if: env.KEYSTORE_BASE64 != '' | ||
| run: echo "$KEYSTORE_BASE64" | base64 -d > ${{ github.workspace }}/release.keystore | ||
|
|
||
| - name: Build mobile APKs | ||
| env: | ||
| SIGNING_STORE_FILE: ${{ github.workspace }}/release.keystore | ||
| SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} | ||
| SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | ||
| SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | ||
| run: ./gradlew :androidApp:assembleDebug :androidApp:assembleRelease |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Check for signingConfigs in Gradle build files
echo "=== Searching for signingConfigs in androidApp ==="
rg -n 'signingConfigs' androidApp/build.gradle.kts
echo "=== Searching for signingConfigs in androidTvApp ==="
rg -n 'signingConfigs' androidTvApp/build.gradle.kts
echo "=== Searching for SIGNING_STORE_FILE usage ==="
rg -n 'SIGNING_STORE_FILE'Repository: Silo-Server/silo-android
Length of output: 219
Wire the injected keystore into Gradle release signing
androidApp/build.gradle.kts and androidTvApp/build.gradle.kts contain no signingConfigs blocks, and the repo has no references to SIGNING_STORE_FILE, so the workflow’s injected release.keystore + SIGNING_* values aren’t consumed by Gradle signing. This makes assembleRelease likely to be unsigned—add signingConfigs/buildTypes { release { signingConfig ... } } (or equivalent AGP injected-signing configuration) that uses the generated ${{ github.workspace }}/release.keystore.
🤖 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/android-build.yml around lines 36 - 46, The build workflow
decodes a release.keystore but Gradle files (androidApp/build.gradle.kts and
androidTvApp/build.gradle.kts) never consume SIGNING_STORE_FILE or the SIGNING_*
env vars, so assembleRelease will be unsigned; add a signingConfigs block (e.g.,
signingConfigs["release"]) that references the keystore file path (use the
SIGNING_STORE_FILE env or ${github.workspace}/release.keystore) and the
SIGNING_STORE_PASSWORD, SIGNING_KEY_ALIAS, SIGNING_KEY_PASSWORD env vars, then
wire that signing config into buildTypes { release { signingConfig =
signingConfigs["release"] } } (or the AGP injected-signing equivalent) in both
androidApp/build.gradle.kts and androidTvApp/build.gradle.kts so the
workflow-provided keystore is used for release signing.
| - name: Collect build artifacts | ||
| if: github.event_name == 'push' | ||
| run: | | ||
| mkdir -p release-artifacts | ||
| for f in androidApp/build/outputs/apk/debug/*.apk; do | ||
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | ||
| done | ||
| for f in androidApp/build/outputs/apk/release/*.apk; do | ||
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | ||
| done | ||
| for f in androidTvApp/build/outputs/apk/debug/*.apk; do | ||
| cp "$f" "release-artifacts/tv-$(basename "$f")" | ||
| done | ||
| for f in androidTvApp/build/outputs/apk/release/*.apk; do | ||
| cp "$f" "release-artifacts/tv-$(basename "$f")" | ||
| done | ||
| for f in androidApp/build/outputs/bundle/release/*.aab; do | ||
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | ||
| done | ||
| for f in androidTvApp/build/outputs/bundle/release/*.aab; do | ||
| cp "$f" "release-artifacts/tv-$(basename "$f")" | ||
| done |
There was a problem hiding this comment.
Add nullglob or error handling for glob patterns.
If a glob pattern matches no files (due to build failure, changed output paths, or ABI split configuration), bash will pass the literal pattern string to cp, causing a cryptic error. The workflow will fail without clearly indicating which artifact is missing.
🛡️ Proposed fix using nullglob
- name: Collect build artifacts
if: github.event_name == 'push'
run: |
+ shopt -s nullglob
mkdir -p release-artifacts
for f in androidApp/build/outputs/apk/debug/*.apk; doWith nullglob enabled, patterns that match nothing expand to an empty list and the loop body never executes, preventing the error.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| - name: Collect build artifacts | |
| if: github.event_name == 'push' | |
| run: | | |
| mkdir -p release-artifacts | |
| for f in androidApp/build/outputs/apk/debug/*.apk; do | |
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | |
| done | |
| for f in androidApp/build/outputs/apk/release/*.apk; do | |
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | |
| done | |
| for f in androidTvApp/build/outputs/apk/debug/*.apk; do | |
| cp "$f" "release-artifacts/tv-$(basename "$f")" | |
| done | |
| for f in androidTvApp/build/outputs/apk/release/*.apk; do | |
| cp "$f" "release-artifacts/tv-$(basename "$f")" | |
| done | |
| for f in androidApp/build/outputs/bundle/release/*.aab; do | |
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | |
| done | |
| for f in androidTvApp/build/outputs/bundle/release/*.aab; do | |
| cp "$f" "release-artifacts/tv-$(basename "$f")" | |
| done | |
| - name: Collect build artifacts | |
| if: github.event_name == 'push' | |
| run: | | |
| shopt -s nullglob | |
| mkdir -p release-artifacts | |
| for f in androidApp/build/outputs/apk/debug/*.apk; do | |
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | |
| done | |
| for f in androidApp/build/outputs/apk/release/*.apk; do | |
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | |
| done | |
| for f in androidTvApp/build/outputs/apk/debug/*.apk; do | |
| cp "$f" "release-artifacts/tv-$(basename "$f")" | |
| done | |
| for f in androidTvApp/build/outputs/apk/release/*.apk; do | |
| cp "$f" "release-artifacts/tv-$(basename "$f")" | |
| done | |
| for f in androidApp/build/outputs/bundle/release/*.aab; do | |
| cp "$f" "release-artifacts/mobile-$(basename "$f")" | |
| done | |
| for f in androidTvApp/build/outputs/bundle/release/*.aab; do | |
| cp "$f" "release-artifacts/tv-$(basename "$f")" | |
| done |
🤖 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/android-build.yml around lines 64 - 85, The artifact
collection step "Collect build artifacts" loops over glob patterns like
androidApp/build/outputs/apk/debug/*.apk and may pass literal patterns to cp
when no files match; enable bash nullglob (shopt -s nullglob) at the start of
that step or add a guard that checks for file existence before calling cp (e.g.,
test -e "$f" or iterate only if the glob expands) so empty globs are skipped and
the workflow reports missing artifacts cleanly.
| if [[ "${{ github.ref }}" == refs/tags/v* ]]; then | ||
| TAG="${{ github.ref_name }}" |
There was a problem hiding this comment.
Quote template expansions to prevent injection.
Direct expansion of ${{ github.ref }} and ${{ github.ref_name }} in shell context could allow code injection if an attacker can push malicious tag names. While Git restricts tag name characters, defense-in-depth suggests quoting all template expansions.
🔒 Proposed fix
- if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
- TAG="${{ github.ref_name }}"
+ if [[ "${GITHUB_REF}" == refs/tags/v* ]]; then
+ TAG="${GITHUB_REF_NAME}"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"And set them as environment variables at the step level:
- name: Determine release tag
if: github.event_name == 'push'
id: release-tag
+ env:
+ GITHUB_REF: ${{ github.ref }}
+ GITHUB_REF_NAME: ${{ github.ref_name }}
+ GITHUB_SHA: ${{ github.sha }}
run: |Apply the same pattern to line 98's ${{ github.sha }}.
🧰 Tools
🪛 zizmor (1.25.2)
[error] 91-91: code injection via template expansion (template-injection): may expand into attacker-controllable code
(template-injection)
[error] 92-92: code injection via template expansion (template-injection): may expand into attacker-controllable code
(template-injection)
🤖 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/android-build.yml around lines 91 - 92, Quote all GitHub
Actions template expansions when used in shell contexts to prevent shell
injection: update the if condition that uses "${{ github.ref }}" and the TAG
assignment using "${{ github.ref_name }}" to use quoted expansions (i.e., ensure
the conditional is if [[ "${{ github.ref }}" == "refs/tags/v*" ]] and TAG is
assigned from a quoted expansion) and move these template values (github.ref,
github.ref_name) into step-level environment variables instead of inline
expansion; apply the same change for github.sha (use a quoted env var reference)
so all uses reference env variables and are quoted in shell tests/assignments.
Source: Linters/SAST tools
| - name: Create release | ||
| if: github.event_name == 'push' | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| PRERELEASE_FLAG="" | ||
| if [[ "${{ steps.release-tag.outputs.prerelease }}" == "true" ]]; then | ||
| PRERELEASE_FLAG="--prerelease" | ||
| else | ||
| PRERELEASE_FLAG="--latest" | ||
| fi | ||
| gh release create "${{ steps.release-tag.outputs.tag }}" \ | ||
| --title "${{ steps.release-tag.outputs.title }}" \ | ||
| --generate-notes \ | ||
| $PRERELEASE_FLAG \ | ||
| release-artifacts/* |
There was a problem hiding this comment.
Quote template expansions in release creation.
The step outputs from release-tag are used in shell commands without quoting. Although these values are controlled by the previous step, they ultimately derive from github.ref and github.ref_name, so the same injection risk applies.
🔒 Proposed fix
- name: Create release
if: github.event_name == 'push'
env:
GH_TOKEN: ${{ github.token }}
+ RELEASE_TAG: ${{ steps.release-tag.outputs.tag }}
+ RELEASE_TITLE: ${{ steps.release-tag.outputs.title }}
+ RELEASE_PRERELEASE: ${{ steps.release-tag.outputs.prerelease }}
run: |
PRERELEASE_FLAG=""
- if [[ "${{ steps.release-tag.outputs.prerelease }}" == "true" ]]; then
+ if [[ "${RELEASE_PRERELEASE}" == "true" ]]; then
PRERELEASE_FLAG="--prerelease"
else
PRERELEASE_FLAG="--latest"
fi
- gh release create "${{ steps.release-tag.outputs.tag }}" \
- --title "${{ steps.release-tag.outputs.title }}" \
+ gh release create "${RELEASE_TAG}" \
+ --title "${RELEASE_TITLE}" \
--generate-notes \
$PRERELEASE_FLAG \
release-artifacts/*📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| - name: Create release | |
| if: github.event_name == 'push' | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| PRERELEASE_FLAG="" | |
| if [[ "${{ steps.release-tag.outputs.prerelease }}" == "true" ]]; then | |
| PRERELEASE_FLAG="--prerelease" | |
| else | |
| PRERELEASE_FLAG="--latest" | |
| fi | |
| gh release create "${{ steps.release-tag.outputs.tag }}" \ | |
| --title "${{ steps.release-tag.outputs.title }}" \ | |
| --generate-notes \ | |
| $PRERELEASE_FLAG \ | |
| release-artifacts/* | |
| - name: Create release | |
| if: github.event_name == 'push' | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| RELEASE_TAG: ${{ steps.release-tag.outputs.tag }} | |
| RELEASE_TITLE: ${{ steps.release-tag.outputs.title }} | |
| RELEASE_PRERELEASE: ${{ steps.release-tag.outputs.prerelease }} | |
| run: | | |
| PRERELEASE_FLAG="" | |
| if [[ "${RELEASE_PRERELEASE}" == "true" ]]; then | |
| PRERELEASE_FLAG="--prerelease" | |
| else | |
| PRERELEASE_FLAG="--latest" | |
| fi | |
| gh release create "${RELEASE_TAG}" \ | |
| --title "${RELEASE_TITLE}" \ | |
| --generate-notes \ | |
| $PRERELEASE_FLAG \ | |
| release-artifacts/* |
🧰 Tools
🪛 zizmor (1.25.2)
[info] 111-111: code injection via template expansion (template-injection): may expand into attacker-controllable code
(template-injection)
[info] 116-116: code injection via template expansion (template-injection): may expand into attacker-controllable code
(template-injection)
[info] 117-117: code injection via template expansion (template-injection): may expand into attacker-controllable code
(template-injection)
🤖 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/android-build.yml around lines 105 - 120, Create release
step uses unquoted step outputs and variables in shell, which can lead to
injection; fix by quoting all template expansions and shell variables used in
the gh release create command and assignments. Specifically, in the "Create
release" step reference the outputs from release-tag
(steps.release-tag.outputs.tag and .title) inside quotes when passed to gh,
ensure PRERELEASE_FLAG is referenced as a quoted variable when passed (e.g., use
"$PRERELEASE_FLAG"), and quote any positional arguments like the artifacts
pattern or expand them safely; also ensure any variable assignments that use
expansions are wrapped in quotes to avoid word-splitting.
Source: Linters/SAST tools
Design spec for sub-project #1 of the silo-apple UI parity work: rebuild the androidTvApp detail screen to pixel-match the silo-apple tvOS "Squared Skyline" detail (feature/playback-ux-redesign), with the exact values read from the Apple source. Includes curated tvOS simulator reference screenshots (docs/superpowers/reference/tvos-detail/). Notable match-exactly outcome: Apple's tvOS detail has no Rate / Watch-Together buttons, so they are removed from the TV detail action row (recorded divergence from the prior "TV mirrors Android mobile" directive, per the explicit "match tvOS exactly" instruction). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
excon < 1.5.0 fails to redact sensitive headers when following redirects (Dependabot alert #1, moderate). The old ceiling came from fastlane 2.236.1's `excon < 1.0.0` pin, so this also takes fastlane 2.237.0, which relaxes it. Verified `bundle install`, fastlane, and excon load under ruby 3.4. Co-Authored-By: Claude Fable 5 <[email protected]>
) * test(tv): ratchet against silently-failing focus claims in screens `requestFocus()` throws when its node has not attached yet rather than returning false, so `runCatching { requestFocus() }` does not handle that failure — it hides it. Focus goes nowhere, no exception surfaces, nothing is logged, and on a leanback app there is no touch fallback to recover with. That is cause #1 of the 2026-08-04 whole-application focus hardening design, and it is still the majority of the code four months later: 8 files use the shared bounded observed-focus policy, 44 still call requestFocus() directly. Eighteen percent adoption. It is also the exact mechanism behind #199 (content focus entry found nothing to focus) and #202 (the crash-report prompt was unreachable, so crash reports have never been sendable from a television). Focus fixes are accelerating rather than converging — 8 focus commits on main in June, 26 in July, 49 in the first ten days of August, 49 of the last 90 days' 83 being `fix:`. A better rule that 18% of the code follows is worth less than the existing rule made impossible to violate, so this makes the next instance fail the build. It does not fix the 78 existing sites. It stops the 79th, while they are migrated in churn order (player 10, detail 8, settings 7, recommendations 7). Equality rather than `<=` on purpose: a `<=` ratchet leaves slack that the next silent claim quietly fills. Migrating a site means lowering BASELINE in the same commit, and the failure message says so. Verified both directions: passes at 78, and fails with the explanatory message when a claim is added — a ratchet that cannot fail is decoration. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(tv): point the gate's message at the file that declares the helper requestFocusUntilObserved is declared in ui/focus/TvObservedFocusPolicy.kt, not TvContentInitialFocus.kt (which calls it). A developer following the failure message would have opened the wrong file. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): observe focus acquisition in the intro banner and the HUD picker Two of the player's ten silent focus claims, migrated to rememberTvContentInitialFocus. Baseline 78 -> 76. Both are the pattern the ratchet exists for: a LaunchedEffect on first composition wrapping requestFocus() in runCatching, which does not handle the throw — it hides it. The intro banner is the sharper case, because it composes into a fresh AnimatedContent subtree on every state transition, so it makes its claim at precisely the moment the tree is least settled. When that claim is dropped the countdown shows with nothing focused and a Select press does not cancel the skip. Stopping at two rather than doing all ten, deliberately. The remaining eight are D-pad-critical control flow — playPauseFocus, scrubberFocus, rootFocus and primaryFocus in TvPlayerScreen, and the HUD tab-pill seeding whose target is a map lookup that varies with the selected tab. Those want an on-device pass before they move, because the failure mode of getting one wrong is a player whose transport controls cannot be reached, which is worse than the silent claim being fixed. These two are self-contained popups whose container is unambiguous. Verified: :androidTvApp:testDebugUnitTest 976 tests, 0 failures, and the ratchet reported the new count itself rather than being told it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): observe focus in the card-overlay preview and the inbox Three more sites, 76 -> 73, all in static screens where the target container is unambiguous. Card overlay settings: when the overlay feature is switched off the detail panel stops being focusable and the D-pad goes dead, so focus moves to the preview pane. That is a relocation — focus already exists and is about to be invalidated — so it takes the short frame budget rather than the acquisition one; a long budget there would only mean seconds of visible thrash. Inbox: two claims with different characters. The first is acquisition, when the list has just populated and nothing is focused yet — dropping it leaves a dead D-pad on a full screen of notifications. The second is relocation after Mark-all removes the focused card from composition. Success is observed as "focus is inside the inbox" rather than "the first row specifically", because a claim landing anywhere in the list is what keeps the D-pad working, and that is what the retry is protecting. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble, and the ratchet reported 73 itself. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): observe focus in person detail's filter chips and bio modal Three more sites, 73 -> 70. The filter row has both flavours in one file. Entry is acquisition — the page has just loaded and nothing is focused. The refocus after a filter change is a relocation, and a sharp one: key() disposes the whole grid including the chip the viewer just pressed, so the claim lands on a node that is being recreated underneath it. Short budget for that one, generous for entry. The full-bio modal is plain acquisition behind a 50ms delay that was doing the retrying by guesswork. The filter observation is taken on the header Column rather than the chip itself: the chip lives in a separate composable that receives only the requester, and "focus is in the header" is the criterion these retries are actually protecting. Threading a callback through just to observe one node would be more API for no more truth. Also records a limitation found while doing this. Person detail's popup-dismiss restore lives in DisposableEffect { onDispose { … } }, which is not a suspend context, so no retry loop can run there — the policy cannot be adopted at that site at all. Sites of that shape need a different answer, and the ratchet counting them means its floor is not zero. Better stated in the baseline than discovered by whoever tries to finish the migration. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble, ratchet reported 70 itself. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): observe focus on the first-run, signup and login surfaces Four more sites, 70 -> 66. All acquisition: a form has just appeared and nothing on it holds focus, so a dropped claim leaves a remote with nothing to act on and no touch fallback to recover with. First-run setup is the worst of them — a viewer whose very first screen ignores the D-pad has no reason to assume the app works at all. Setup and signup take rememberTvContentInitialFocus, since each has a single target under one root. Login needs the policy directly: its target depends on which surface is showing, and the claim re-fires when they swap. The phone-first branch is the one that matters — a dropped claim there strands the remote on a QR code that cannot be actioned. Both targets live under the same root, so observation is taken there. The target is hoisted to a val rather than selected inline at the call, because `usernameFocus::requestFocus` inside an if/else resolved to the FocusDirection overload rather than the no-arg one. Worth knowing before the same shape appears in the remaining sites: a bound reference to requestFocus is ambiguous without an expected type on hand. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble, ratchet reported 66 itself. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): stop the library grids reporting a focus handover that did not happen Three sites, 66 -> 63 — and two of them were doing something worse than claiming focus silently. Both library grids called onInitialContentFocus() unconditionally, right after an unobserved requestFocus(). That callback is how a screen tells the shell it has taken content focus. Firing it when the claim was dropped tells the shell focus landed somewhere it did not, and the policy's own documentation names the consequence: "telling a shell that focus landed when it did not is how a screen ends up with no focus owner at all". Nothing focused, and the shell believing otherwise, so nothing corrects it. The handover now fires only on observed acquisition. The claim itself is observed on the grid, since "focus is in the grid" is what the retry is protecting rather than the first cell specifically. Collection detail is the plain case: initial focus on a list that has just populated, previously blind behind its own guard flag. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble, ratchet reported 63 itself. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): observe calendar's shelf handover and retire its hand-rolled retry Three sites, 63 -> 60. The shelf request is the library-grid bug again: onFocusApplied() retires the pending focus request, and it was called straight after an unobserved claim. Retiring a request whose claim was dropped loses it entirely — nothing focused and nothing left to retry it. It now fires only on observed acquisition, using the shelf's existing focus reporting, which was already sitting three lines below the effect. The day claim was a hand-rolled six-attempt loop pacing itself with frames and 40ms delays, judging success on requestFocus() returning true. That is acceptance, not arrival: it reports that the request was taken, not that focus is there. The shared policy does the same pacing and judges it on observed focus, so the bespoke loop goes. Two calendar sites are deliberately left. The NavHost-restore handoff at the top of the screen coordinates with shell bar suppression across several frames and wants its own change. The Up-fallback claim lives in a key-event branch that must return synchronously whether it handled the key, so it has no suspend context to retry in — the same shape as person detail's onDispose restore. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble, ratchet reported 60 itself. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): migrate settings, and remove the "cannot be migrated" category Six sites, 60 -> 54, including the first one that had no coroutine to retry in. Settings' entry focus was four attempts judged on requestFocus() returning true, then onInitialContentFocus() called regardless — so the shell was told content had taken focus even when the loop had just failed four times running. Observed now, and the handover fires only on arrival. The rail already reported a category taking focus, so that signal is routed to the screen rather than adding a layout node to watch for it. Also migrated: the detail-pane request, the picker dialog's initial focus, and the destructive-confirm dialog, where Cancel holding focus is what stops a stray Select press running the destructive action. The Back-to-category claim is the interesting one. A BackHandler must return synchronously whether it consumed the key, so it cannot await anything — which is what I had been treating as an exemption, twice. That was wrong. Retrying is only half of what the policy provides; the other half is that a failed claim stops being invisible, and that half needs no coroutine at all. So there is now claimFocusOrReport for those callers: one attempt, because one attempt is all they can make, and a diagnostic when it does not land instead of a swallowed throw. The same tool covers person detail's onDispose restore and calendar's Up-fallback branch, which were the other two "unmigratable" sites. The baseline's floor is zero after all. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): migrate the synchronous claims and library browse controls Five sites, 54 -> 49. Person detail's onDispose restore and calendar's Up-fallback key branch are the two sites I had twice called unmigratable. Both now use claimFocusOrReport: one attempt, since that is all a teardown or a key handler can make, and a reported failure rather than a swallowed throw. Library's clear-filters pill is the same shape — clearing filters removes that pill from composition, so focus is moved off it inside a click handler with no suspend point. The sort and facet panels are ordinary acquisition behind a 50ms delay that was doing the retrying by guesswork. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): observe every focus claim on the search screen Six sites, 49 -> 43, and search was the densest file yet — a text field, filter chips, catalog results, request rows and a feedback action all competing for one screen's focus. The four-way post-search claim was a single runCatching wrapping an if/else chain, so whichever branch it picked, a throw from any of them was swallowed identically. The target is now chosen first and claimed once, which also makes the choice readable. Both return restorations previously waited exactly one frame and hoped. They are relocations onto cards that are being scrolled into place underneath them, so they take the short budget and are judged on arrival. Back from a raised keyboard uses the single-shot claim: it has to answer synchronously whether it consumed the press, and losing that claim quietly would leave the viewer with the keyboard gone and nothing focused — which is the failure that made Back pop the whole screen before. Observation is taken at the screen root, since every one of those targets lives under it and 'focus is on search' is what each claim is actually waiting for. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): migrate the recommendations focus bridge and For You entry Seven sites, 43 -> 36. Six of them are Boolean-returning lambdas handed to the focus bridge and to a row's DirectionUp handler. Each wrapped requestFocus in runCatching and defaulted to false, so a throw and a genuine refusal were indistinguishable to the bridge deciding what to do next. They now report the difference while still answering synchronously, which is all a bridge callback or a key handler can do. The seventh is the For You entry claim, and it is the fifth false shell handover this sweep has turned up: onInitialContentFocus() fired whether or not the claim landed. Same fix as the library grids, the calendar shelf and settings — the handover waits for observed arrival. Five occurrences of one bug across five unrelated screens is not five mistakes. It is what happens when the only available primitive cannot report failure, so every caller assumes success. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): migrate admin, browse, home and the audiobook bookmark panel Five sites, 36 -> 31. Home is the sixth false shell handover: onInitialContentFocus() fired straight after an unobserved claim, so a dropped claim on the app's first screen left nothing focused and the shell believing content owned focus. Admin hub, admin user edit and browse are ordinary acquisition. The audiobook bookmark delete moves focus to a stable anchor because the deleted row leaves composition — a click handler, so single-shot and reported. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): migrate the profile form key handlers and the requests screen Six sites, 31 -> 25. The profile form's three DirectionDown handlers each claimed focus and returned true unconditionally — reporting the key as consumed whether or not focus had moved, so a refused claim ate the press and left the viewer stuck on the field above. Single-shot and reported now, and the handler's answer follows the claim. Requests' entry claim is the seventh false shell handover. Its post-search target was an if/else around two separate runCatching blocks; the target is chosen first and claimed once. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): migrate item detail, including the isSuccess focus check Eight sites, 25 -> 17. The return-to-top handler asked runCatching{ requestFocus() }.isSuccess. That is true whenever the call did not THROW, so a request that returned false — node present but refusing focus — counted as focused. The scroll then ran as though the highlight had already moved, which is the 'focus appears only after the window settles' symptom the surrounding comment was written to prevent. Both claims now report the request's own answer. The cast return-restore was a hand-rolled forty-attempt loop, and unusually it was already judging on observed focus — which is why it worked. It just open-coded the pacing, so the policy replaces it with the two-frame cadence and attempt count preserved. The two similar-restore lambdas are owned by TvSimilarFocusRestoration, which does its own observation and documents that the return value is not evidence. They keep answering synchronously and now report a swallowed throw. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): migrate the player HUD and transport focus claims Eight sites, 17 -> 9. This is the set I had been deferring for a device pass. The sharpest is the hidden-overlay root claim: while controls are hidden the outer Box must own focus or the first remote press never reaches onPreviewKeyEvent — the viewer presses once, nothing happens, and presses again. That claim was unobserved, so on any frame where the Box had not attached it silently did not happen. The idle overlay's target was chosen inside a single runCatching wrapping a when, so a throw from either branch was indistinguishable. Chosen first, claimed once. Both transport handoffs (scrubber down to play/pause, transport up to scrubber) and the remote's FocusTransport action answer synchronously, so they take the single-shot reporting claim. Still not device-verified — the D-pad paths through the transport want a real remote, and that is a check I cannot run from here. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(tv): eliminate the last silent focus claims — baseline reaches zero Nine sites, 9 -> 0. Diagnostics settings ran a bounded loop through a helper that mapped a Result: not throwing counted as FOCUSED, so it stopped on acceptance rather than arrival. Its key handler moved between rows and reported the press consumed regardless. The crash prompt and its confirmation now retry against observed focus, matching the treatment on the crash-prompt-reachability branch so the two resolve to the same shape whichever lands first. Server setup's host field and, more importantly, the pairing consent prompt — an Allow button that never takes focus cannot be answered from a remote at all. Calendar's NavHost-restore handoff was the one I deferred twice. It coordinates bar suppression across several frames, and its arrival signal turned out to be already present: the controls report which zone took focus, so no new node was needed to watch for it. The ratchet now guards zero. Any new runCatching { requestFocus() } in a TV screen fails the build, and between them the two tools cover every context: requestFocusUntilObserved where a coroutine exists, claimFocusOrReport where the caller must answer synchronously. Not device-verified. The unit suites prove nothing regressed and the APKs build; whether each claim now lands on the right node under a real remote is a separate pass. Verified: androidTvApp 976 tests, android-shared 1101 tests, 0 failures, 4 APKs. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(tv): leave the crash prompt to the branch that can actually fix it Backs out this branch's changes to TvDiagnosticsPromptScreen and raises the baseline from 0 to 2. Migrating those two claims here was duplicated work, and worse than duplicated: observing the retry is the half that does not fix them. The prompt is composed inside the shell's content Box, whose focusRestorer intercepts focus ENTRY and reroutes it to the child it remembers, so a retry loops into the same interception however many times it runs. What fixes it is giving the prompt its own Dialog window, which lives on the crash-prompt-reachability branch along with tvModalFocusBoundary and the modal restore attempts. Had both landed, the resolution would have had to pick one, and picking this branch's version would have left the code looking correct while the prompt stayed unreachable — the exact failure mode that made crash reports unsendable from a television in the first place. So that file now belongs to one branch. Drop the baseline to 0 when it lands. Verified: :androidTvApp:testDebugUnitTest 976 tests 0 failures, APKs assemble. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * docs(test): correct the stale site count and record the ratchet's two limits The KDoc still claimed 78 sites remained and that the test stops the 79th; the baseline has moved with the migration and now records what is left rather than what it started at. Also records two real limits raised in review, both of which hold only because the baseline is at or near zero. The scan is a fixed character window rather than a brace-aware parse, so it can pair a runCatching with an unrelated requestFocus — which happened during this migration — and can miss one written further away than the window. And the assertion compares a total rather than a set, so while the baseline was non-zero, adding one claim while migrating another kept the count and passed. At zero there is nothing to offset against, which is the only reason a count suffices; if the baseline is ever raised above zero the hole reopens. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(tv): baseline reaches zero now that the crash prompt has landed #202 removed the two TvDiagnosticsPromptScreen claims this baseline was holding open, so the ratchet reports 0 and the constant follows it. Every TV screen is now free of silent focus claims, and any new one fails the build. Verified: :androidTvApp:testDebugUnitTest 976 tests, 0 failures. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: rxwatcher <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…is back A replan sent into an outage waited for Ktor's 60 s request timeout and then failed the playback, even when the link had come back seconds later (gauntlet E4, outage #1: error screen with Retry, no recovery). The session manager now resends a replan that got no response with its original body, which the journal allows since the previous commit: it waits for the device to report a connected network (at most 15 s), backs off 1, 2, 4, 8 then 15 s, and keeps going while the session is still the active one. The server answers the request for the first time or replays the decision it already made, so nothing is applied twice. Part of contract C10 of the auto-quality fix round. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add CI/CD pipeline for automated Android builds and releases
Summary
Build matrix
│ Target │ Variants │ Output │
│ androidApp │ debug, release │ APK + AAB (release) │
│ androidTvApp │ debug, release │ APK + AAB (release) │
Secrets required
│ Secret │ Purpose │
│ KEYSTORE_BASE64 │ Base64-encoded release keystore (optional — unsigned builds still work) │
│ SIGNING_STORE_PASSWORD │ Keystore password │
│ SIGNING_KEY_ALIAS │ Key alias │
│ SIGNING_KEY_PASSWORD │ Key password │
Test plan
Summary by CodeRabbit