sigstore / sigstore-python

A Sigstore client written in Python
https://pypi.org/p/sigstore
Other
232 stars 49 forks source link

_cli: files always take precedence over digests #1152

Closed woodruffw closed 1 month ago

woodruffw commented 1 month ago

This fixes a small edge case where a user supplies sha256:hash.jsonl or similar (such as produced by default by gh attestation) and the sigstore verify subcommands interpret it as an (invalid) hash rather than a file input.

The new behavior is to always interpret the input as a path if a file at that path is extant, and to otherwise interpret it as a hash.

CC @facutuesca