Sign the specified file.
(self, file_path: str | Path)
| 68 | raise NotImplementedError("Signature verification not implemented for base class.") |
| 69 | |
| 70 | def sign(self, file_path: str | Path): |
| 71 | """Sign the specified file.""" |
| 72 | # Use shell=True with env var references so secrets aren't exposed in tracebacks |
| 73 | command = f"{self.get_signing_command()} {win_str_esc(str(file_path))}" |
| 74 | check_call(command, shell=True) |
| 75 | |
| 76 | |
| 77 | class WindowsSignTool(SigningTool): |
no test coverage detected