Commit 3459bbb
authored
ci: Fix Windows release attestation by writing CRLF checksums (#571)
## Summary
Windows release jobs fail at `actions/attest`: its parser splits
`checksums.txt` on `os.EOL` (`'\r\n'` on Windows), but the
Generate-checksums step writes LF-only. The whole file becomes a single
record whose subject name exceeds 256 chars.
Pipe through `sed 's/$/\r/'` on the Windows branch to produce CRLF.
Linux and macOS unchanged.
Confirmed on a Windows runner: `sha256sum` on Git Bash writes LF only,
the base64 round-trip preserves it, and Node `os.EOL` on the runner is
`"\r\n"`.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> CI-only line-ending tweak on the Windows checksum branch; no runtime
SDK or security logic changes.
>
> **Overview**
> Fixes **Windows release jobs** failing at `actions/attest` when
parsing `checksums.txt`.
>
> On the Windows matrix leg, the **Generate checksums file** step now
pipes decoded hashes through `sed 's/$/\r/'` so each line ends with
**CRLF**, matching how `actions/attest` splits on `os.EOL` (`\r\n`) on
Windows. LF-only output was treated as one record and blew past subject
name limits. **Linux and macOS** checksum generation is unchanged.
>
> The same one-line change is applied everywhere that Windows hash
output is written: `manual-sdk-release-artifacts.yml` and four release
jobs in `release-please.yml` (client, server, redis, dynamodb).
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
840d153. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent a2e75c6 commit 3459bbb
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
0 commit comments