Skip to content

Include --repo in both gh attestation commands - #2498

Merged
mistydemeo merged 1 commit into
axodotdev:mainfrom
ntBre:brent/fix-attestation-bundle-command
Sep 4, 2026
Merged

mistydemeo merged 1 commit into
axodotdev:mainfrom
ntBre:brent/fix-attestation-bundle-command

Conversation

@ntBre

@ntBre ntBre commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

As reported in astral-sh/ruff#28270 and shown in Ruff v0.16.5, for example, only the first attestation command includes --repo {owner}/{repo}. This PR just adds it to the second one as well.

Test Plan

Updated snapshots, and some manual testing:

❯ gh attestation verify ruff-aarch64-apple-darwin.tar.gz --bundle astral-sh-ruff-attestation-43454458.sigstore.json
at least one of the flags in the group [owner repo] is required
❯ gh attestation verify ruff-aarch64-apple-darwin.tar.gz --bundle astral-sh-ruff-attestation-43454458.sigstore.json --repo astral-sh/ruff
...
✓ Verification succeeded!

Summary
--

As reported in astral-sh/ruff#28270 and shown in [Ruff v0.16.5], for
example, only the first attestation command includes `--repo {owner}/{repo}`. This PR just adds it
to the second one as well.

[Ruff v0.16.5]: https://github.com/astral-sh/ruff/releases/tag/0.16.5

Test Plan
--

Updated snapshots, and some manual testing:

```console
❯ gh attestation verify ruff-aarch64-apple-darwin.tar.gz --bundle astral-sh-ruff-attestation-43454458.sigstore.json
at least one of the flags in the group [owner repo] is required
❯ gh attestation verify ruff-aarch64-apple-darwin.tar.gz --bundle astral-sh-ruff-attestation-43454458.sigstore.json --repo astral-sh/ruff
...
✓ Verification succeeded!
```

@mistydemeo mistydemeo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@mistydemeo
mistydemeo merged commit 3103664 into axodotdev:main Sep 4, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants