Repository navigation
Commit 96eab1d
authored
ci(release): attest GitHub Release assets with build provenance (#7467)
Adds a build provenance attestation for every GitHub Release asset,
created in the `publish` job right before the release is made immutable.
- `actions/attest` signs the versioned tarballs, zips, deb/rpm/apk
packages, `checksums.txt` and the `install` script. The unversioned
`supabase_<os>_<arch>.tar.gz` aliases are byte-identical copies, so the
same attestations cover them by digest.
- `attestations: write` is granted to the `publish` job and to both
callers of `release-shared.yml` (`release.yml` and
`release-smoke-test.yml`), since a reusable workflow cannot exceed its
caller's permissions.
Anyone can now verify a downloaded asset with `gh attestation verify
<file> --repo supabase/cli`. Once a release ships with attestations, the
aqua registry entry for `supabase/cli` can add
`github_artifact_attestations` with `signer_workflow:
supabase/cli/.github/workflows/release-shared.yml`, which makes mise and
aqua verify each download against it.
This touches release infrastructure, so it needs a cherry-pick to
`v2.x`.1 parent 497bf42 commit 96eab1d
3 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| |||
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
412 | 423 | | |
413 | 424 | | |
414 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
| |||
0 commit comments