fix(release): SIGNING_PASSWORD에 키 블록이 들어간 경우를 이름 댄다
pr / ci (pull_request) Successful in 3m40s

signing-check(run 15)가 남은 실패의 원인을 보였다. SIGNING_PASSWORD는
3,473글자에 줄바꿈 56개였다. 앞 run에서 base64를 푼 armored 키(3,474글자,
58줄)와 같은 모양이다. Gradle 서명기는 「checksum mismatch at in checksum
of 20 bytes」, 곧 틀린 비밀번호로 실패했다. 비밀번호 칸에 키가 들어갔다.

진단이 이 경우를 바로 말한다. 비밀번호에 「-----BEGIN PGP」가 있거나
1,000글자를 넘으면, 그것이 비밀번호가 아니라는 PROBLEM 줄을 낸다(값은
출력하지 않는다). release.md 1절에 SIGNING_PASSWORD는 키를 만들 때 정한
암호 한 줄이라고 적었다.

검증: 로컬 gpg로 armored 키를 비밀번호로 준 경우 PROBLEM 줄과 rc=1(아래
signing-check 실행).
This commit is contained in:
DongHyeonka
2026-11-08 15:22:32 +09:00
parent a892a45073
commit f88f180ab6
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -31,6 +31,9 @@ p = os.environ.get("SIGNING_PASSWORD", "")
print(f"password shape: {len(p)} characters, line breaks {p.count(chr(10))}, CR {p.count(chr(13))},"
f" leading whitespace {'yes' if p[:1].isspace() else 'no'}, trailing whitespace {'yes' if p[-1:].isspace() else 'no'},"
f" non-ASCII characters {sum(1 for c in p if ord(c) > 127)}")
if "-----BEGIN PGP" in p or len(p) > 1000:
print("PROBLEM: SIGNING_PASSWORD holds a PGP key block (or something as long), not the passphrase."
" Put in only the passphrase chosen when the key was made.")
PY
home=$(mktemp -d)