Commit 21d2c74
committed
fix: treat blank signingKey/signingPassword as absent to avoid PGP parse error
GitHub Actions injects an empty string "" for unset secrets, not null.
The previous isRequired check saw "" as non-null and called
useInMemoryPgpKeys("", ...), which made Bouncy Castle blow up with
'secret key ring doesn't start with secret key tag: tag 0xffffffff'.
Normalise with .ifBlank { null } before the presence check so that
builds without signing secrets skip signing silently as intended.1 parent e54b113 commit 21d2c74
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
0 commit comments