Skip to content

Commit 07cef9c

Browse files
committed
Send Sigstore CLI verification to stdout, not stderr
1 parent 4c00245 commit 07cef9c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

add_to_pydotorg.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,18 @@ def has_sigstore_signature(filename: str) -> bool:
422422
filename_sigstore = filename + ".sigstore"
423423

424424
if os.path.exists(filename_sigstore):
425-
run_cmd(sigstore_verify_argv + ["--bundle", filename_sigstore, filename])
425+
run_cmd(
426+
sigstore_verify_argv
427+
+ ["--bundle", filename_sigstore, filename],
428+
stderr=subprocess.STDOUT, # Sigstore sends stderr on success.
429+
)
426430

427431
# We use an 'or' here to error out if one of the files is missing.
428432
if os.path.exists(filename_sig) or os.path.exists(filename_crt):
429433
run_cmd(
430434
sigstore_verify_argv
431-
+ ["--certificate", filename_crt, "--signature", filename_sig, filename]
435+
+ ["--certificate", filename_crt, "--signature", filename_sig, filename],
436+
stderr=subprocess.STDOUT, # Sigstore sends stderr on success.
432437
)
433438

434439

0 commit comments

Comments
 (0)