Skip to content

Commit

Permalink
_cli: add warning to bare sigstore verify
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Jan 4, 2023
1 parent b62e39c commit a2589d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sigstore/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ def _set_default_verify_subparser(parser: argparse.ArgumentParser, name: str) ->
# subcommand, and insert it directly after it.
verify_idx = sys.argv.index("verify")
sys.argv.insert(verify_idx + 1, name)
logger.warning(
"`sigstore verify` without a subcommand will be treated as "
"`sigstore verify identity`, but this behavior will be deprecated "
"in a future release"
)
except ValueError:
# This happens when we invoke `sigstore sign`, since there's no
# `verify` subcommand to insert under. We do nothing in this case.
Expand Down

0 comments on commit a2589d5

Please sign in to comment.