Skip to content

Commit

Permalink
comments 2
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sablotny <[email protected]>
  • Loading branch information
susperius committed Aug 21, 2024
1 parent 7eaadfe commit 4e9838e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def _arguments() -> argparse.Namespace:
pki = method_cmd.add_parser("pki")
pki.add_argument(
"--cert_chain",
help="paths to pem encoded certificate files or a single file \
containing a chain",
help="paths to pem encoded certificate files or a single file" +
"containing a chain",
required=False,
type=list[str],
default=[],
Expand Down
7 changes: 3 additions & 4 deletions src/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def _arguments() -> argparse.Namespace:
pki = method_cmd.add_parser("pki")
pki.add_argument(
"--root_certs",
help="paths to PEM encoded certificate files or a single file \
used as the root of trust",
help="paths to PEM encoded certificate files or a single file" +
"used as the root of trust",
required=False,
type=list[str],
default=[],
Expand Down Expand Up @@ -106,8 +106,7 @@ def main():
else:
log.error(f"unsupported verification method {args.method}")
log.error(
('supported methods: ["sigstore",', '"pki", "private-key", "skip"]')
)
"supported methods: [\"pki\", \"private-key\", \"skip\"]")
exit()

log.info(f"Verifying model signature from {args.sig_path}")
Expand Down

0 comments on commit 4e9838e

Please sign in to comment.