Repository navigation
Conversation
…environment Nightlies run release.yml from main and check out the 0.22 SHA. Once 0.22 drops the committed helper key (#5341), its build script needs the release keystore, and with AGENT_DEVICE_ANDROID_HELPER_RELEASE=1 it fails instead of using a throwaway key. Publishing jobs now run in the release environment, export the keystore, and set the marker; PR dry runs get neither.
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 8fe60c5. The verdict and the full list are in the summary comment.
- 🟡 Minor · New helper signing step is a no-op: build-android-helper.sh ignores the exported keystore ·
.github/workflows/release-android-snapshot-helper.yml:30 - 🟡 Minor · Release keystore password exported job-wide, so later steps and dependency install scripts inherit it ·
.github/actions/setup-android-helper-signing/action.yml:22
|
The PR is ready at 8fe60c5. CI is green: 34 checks, none failing. There are no conflicts. Merge now needs the maintainer to create the protected Not blocking, and fine to take or leave: action.yml:25 writes the password to GITHUB_ENV, so every later step in the job inherits it. Writing only the keystore path there and passing the password as step-level env on the build step would narrow that. Also, the comment at release.yml:296 says VERCEL_SITE_DEPLOY_HOOK is the only secret this workflow reads, but the build job now reads the two keystore secrets. The open inline thread on the GITHUB_ENV password at #5352 (comment) still applies as hardening only. The thread at #5352 (comment) does not apply, because the PR body states that main's build script ignores the env and the step takes effect once #5341 lands, so it can be resolved. Not verified here: the 0.22 head of scripts/build-android-helper.sh honoring AGENT_DEVICE_ANDROID_HELPER_RELEASE fail-closed (that is #5341's scope), the |
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
Reviewed f46b585, the delta since the earlier review at 8fe60c5 (#5352 (comment)). The code looks correct, and all 32 checks pass at this commit. The The keystore password no longer goes to Not verified here: the workflows were not run, and environment Before merge, the maintainer must create environment |
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Summary
Nightly releases run
release.ymlfrommainand check out the0.22SHA. #5341 removes the committed Android helper signing key on0.22. After it,scripts/build-android-helper.shsigns withAGENT_DEVICE_ANDROID_KEYSTORE, and withAGENT_DEVICE_ANDROID_HELPER_RELEASE=1it fails instead of using a throwaway key. This PR givesmain's publishing jobs that keystore and marker.Merge order: this PR first, then #5341. The reverse order lets a nightly publish a throwaway-signed helper.
Required before merge (maintainer): create GitHub environment
releasewith protection rules, and add the environment secretsANDROID_HELPER_KEYSTORE_BASE64andANDROID_HELPER_KEYSTORE_PASSWORDthere. Until both exist, nightly and stable runs stop at the signing step.Before / after
Before: with #5341 merged, a nightly from
mainwould sign with a dev key and publish a helper nobody can update.After: the
release.ymlbuild job runs inreleasefor nightly and stable (none fordry-run), sets the marker, and runssetup-android-helper-signingfrom the workflow commit (.release-tools), so a0.22source without that action still works.release-android-snapshot-helper.ymlruns inreleaseand builds onlygithub.ref; itscheckout_refinput is removed. The publisher gets no secrets.Validation
Head 9f46ad6; CI pending.
pnpm exec vitest run --project unit-core test/ci/release-workflow.test.ts test/repo-guards/release-assets.test.ts: 56 passed.Production delta: about +40 workflow lines, no package code.
Residual risk:
main's own helper script keeps its committed key until the0.22change reachesmain.