r0adkll/sign-android-release

Failed to load signer "signer #1" java.io.EOFException

vitalyk-multinarity opened this issue · 3 comments

I saw a few similar reports and read all suggestions, but so far couldn't resolve this issue.
Note: I'm using the same signingKeyBase64 secret for my Android unity builds (game-ci/unity-builder) and my Unity .apk is signed OK.
My signingKeyBase64 is single-line text with size=3257 bytes ("ls -l"). It looks like a private SSH key, but without "-----BEGIN OPENSSH PRIVATE KEY-----" header and footer.
Which things I should check/modify in my build?

Thanks,
Vitaly

Update: I'm able to sign my .apk manually using

apksigner sign -v --out /tmp/myapp-signed.apk -ks keystore_base64_decoded --ks-key-alias release --ks-pass pass:my_real_pass /tmp/myapp.apk

where keystore_base64_decoded is received by
base64 --decode keystore_encoded > keystore_base64_decoded

Update: it seems like the action doesn't receive all parameters - see attached screenshot
Screen Shot 2022-05-30 at 17 38 15
Usually I see all 'with' params here...
.

Shame on me! - I used this workflow via workflow_call and didn't pass all relevant secrets.