Skip to content

Fail release builds when signing secrets are missing - #1

Closed
iamkhalid2 wants to merge 1 commit into
mainfrom
claude/project-thread-fkzg9b
Closed

iamkhalid2 wants to merge 1 commit into
mainfrom
claude/project-thread-fkzg9b

Conversation

@iamkhalid2

Copy link
Copy Markdown
Owner

Requested by Khalid · project thread

Before: when the keystore secrets were not set, the release job generated a brand-new key on the runner, signed the APK with it and threw the key away. Each release was signed by a different key, so Android refuses to install it over the previous one. v0.0.1 was published this way (the run log shows all four secrets empty and the "self-signed release key" branch taken).

After: the job checks ANDROID_KEYSTORE_BASE64, ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS and ANDROID_KEY_PASSWORD right after checkout and fails with one error annotation per missing secret, before the SDK install and build. The throwaway-key branch is gone, and the verify step now prints the signing certificate digests so each release's key can be checked in the log.

How: a new "Require release signing secrets" step; the signing step keeps only the keystore path. A "Release signing" section in the README lists the secrets and how to create and encode the keystore. No key is created or committed.

Tested locally by running the check script with secrets missing (exits 1, names each missing secret) and with all four set (exits 0). The workflow itself has not run on this branch since it only triggers on v* tags or manual dispatch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KNXRMiBKbauxVxR58bSxcb


Generated by Claude Code

The release job generated a fresh throwaway key whenever the keystore
secrets were absent, producing APKs that can never be updated in place.
It now checks all four secrets before building and aborts with an error
naming each missing one. The README documents the required secrets.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KNXRMiBKbauxVxR58bSxcb
@iamkhalid2 iamkhalid2 self-assigned this Oct 15, 2026
@iamkhalid2
iamkhalid2 marked this pull request as ready for review October 15, 2026 22:25
@iamkhalid2

Copy link
Copy Markdown
Owner Author

Superseded by #3 and 30594d5 on main: the release workflow now refuses to sign without all four keystore secrets, and this PR's README section is on main. Closing as the branch is being cleaned up.

@iamkhalid2 iamkhalid2 closed this Oct 24, 2026
@iamkhalid2
iamkhalid2 deleted the claude/project-thread-fkzg9b branch October 24, 2026 14:42
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