Commit ad280c3
fix(ci): strip \r and ensure trailing \n in .p8 key file
CryptoKit's PEM parser rejects files with Windows-style CRLF line
endings (\r\n). tr -d '\r' normalises to Unix LF before writing.
Also ensures the file ends with exactly one \n (CryptoKit requires
a trailing newline on the -----END PRIVATE KEY----- line).
Added first/last line print for easier diagnosis on the next run.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a00a80e commit ad280c3
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | 125 | | |
127 | | - | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
135 | | - | |
| 141 | + | |
136 | 142 | | |
137 | 143 | | |
138 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
139 | 148 | | |
140 | 149 | | |
141 | 150 | | |
| |||
0 commit comments