MCPcopy Create free account
hub / github.com/cli/cli / codesignBinary

Function codesignBinary

pkg/cmd/extension/manager.go:850–857  ·  view source on GitHub ↗
(binPath string)

Source from the content-addressed store, hash-verified

848}
849
850func codesignBinary(binPath string) error {
851 codesignExe, err := safeexec.LookPath("codesign")
852 if err != nil {
853 return err
854 }
855 cmd := exec.Command(codesignExe, "--sign", "-", "--force", "--preserve-metadata=entitlements,requirements,flags,runtime", binPath)
856 return cmd.Run()
857}
858
859// cleanExtensionUpdateDir deletes the extension-specific directory containing metadata used in checking for updates.
860// Because extension names are not unique across GitHub organizations and users, we feel its important to clean up this metadata

Callers 1

installBinMethod · 0.85

Calls 2

CommandMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected