Files
nushell/.github
Marshall Porter 31c3cb7569 ci(release): attest release archives with build provenance (#19547)
## Description

In this PR, I added GitHub artifact attestations for the release
archives, as proposed in #19546.

The `sha256sum` job in `release.yml` already downloads every released
file into one directory to write `SHA256SUMS`, so I generate the
attestations there with `actions/attest-build-provenance` (pinned like
the other actions in the file), and add the `id-token: write` /
`attestations: write` permissions that the step needs to that job only.

After this, each release archive is verifiable with:

```
gh attestation verify <file> --repo nushell/nushell
```

which closes the gap noted in #19546: today a checksum only proves an
archive matches the release it came from, not who built it. atuin ships
the same kind of attestations for its release archives, so there is
precedent for the approach.

One caveat, also noted in the issue: the step runs on a tagged release
with the repository's OIDC token, so it could not be exercised before
merging. The action is the same one used widely for this purpose, and
the placement in the existing job keeps it next to the checksums it
complements.

## User-facing changes (Release notes)

Release archives are now signed with GitHub artifact attestations and
can be verified with `gh attestation verify`.

## Additional notes

Closes #19546

*AI usage: the change and its description were developed in AI-assisted
sessions (Claude); I reviewed and ran everything.*
2026-11-15 13:56:50 -06:00
..