Commit b623788
committed
Port workflow updates
This includes two mechanisms that should impair any theoretical ability
on my part to modify a GitHub release without detection:
1. Printing the SHA256SUMS as they're generated, so you can see them
in the workflow output and compare them with the release
attachment.
2. Using GitHub's formal "Attestations" feature to sign the release
archives with a Microsoft-controlled PKI that _should_ only be
accessible in the context of a GitHub Actions workflow. There's a
lot I don't love about this solution on principle, but it's cheap
enough to add and arguably stronger since the attestations are
stored in a public immutable log. More interestingly, if you do use
the GitHub CLI to verify a tarball, it can link you to the specific
workflow run that signed it without you having to dig through
multiple levels of links.
I wondered if I should bother to GPG-sign the SHA256SUMS file, but that
wouldn't provide the guarantee I mentioned above, since I control that
key and could theoretically modify the signature along with anything
else.1 parent 89cd109 commit b623788
File tree
2 files changed
+15
-5
lines changed- .github/workflows
2 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
83 | | - | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | | - | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
108 | | - | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments