Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions add_to_pydotorg.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,23 @@
filename_sigstore = filename + ".sigstore"

if os.path.exists(filename_sigstore):
run_cmd(sigstore_verify_argv + ["--bundle", filename_sigstore, filename])
run_cmd(

Check warning on line 425 in add_to_pydotorg.py

View check run for this annotation

Codecov / codecov/patch

add_to_pydotorg.py#L425

Added line #L425 was not covered by tests
sigstore_verify_argv + ["--bundle", filename_sigstore, filename],
stderr=subprocess.STDOUT, # Sigstore sends stderr on success.
)

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


Expand Down