Commit d8481ba
fix(ci): strip trailing whitespace from .p8 lines
The last line of the APP_STORE_CONNECT_PRIVATE_KEY secret had trailing
spaces (e.g. '-----END PRIVATE KEY----- '), which caused
CryptoKit.CryptoKitASN1Error.invalidPEMDocument — CryptoKit's PEM
parser requires the -----END...----- footer with no trailing whitespace.
sed 's/[[:space:]]*$$//' strips trailing whitespace from every line
before writing the key file, fixing the issue regardless of how the
secret was pasted.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ad280c3 commit d8481ba
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
0 commit comments