MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / sign_file

Method sign_file

scripts/build.py:435–445  ·  view source on GitHub ↗
(self, path: pathlib.Path)

Source from the content-addressed store, hash-verified

433 ]
434
435 def sign_file(self, path: pathlib.Path) -> List[pathlib.Path]:
436 info(f"Signing {path.name}")
437 run_cmd(
438 ["gpg", "--detach-sign", *self.sign_args(), "--local-user", self.gpg_id, path],
439 env=self.gpg_env(),
440 )
441 run_cmd(
442 ["gpg", "--detach-sign", *self.sign_args(), "--armor", "--local-user", self.gpg_id, path],
443 env=self.gpg_env(),
444 )
445 return [path.with_suffix(f"{path.suffix}.asc"), path.with_suffix(f"{path.suffix}.sig")]
446
447 def clean(self):
448 info("Cleaning gpg keys")

Callers 1

build_linuxFunction · 0.80

Calls 4

sign_argsMethod · 0.95
gpg_envMethod · 0.95
infoFunction · 0.90
run_cmdFunction · 0.90

Tested by

no test coverage detected