MCPcopy Index your code
hub / github.com/cli/cli / printPreInstallDisclaimer

Function printPreInstallDisclaimer

pkg/cmd/skills/install/install.go:1189–1191  ·  view source on GitHub ↗

printPreInstallDisclaimer prints a warning that installed skills are unverified and should be inspected before use.

(w io.Writer, cs *iostreams.ColorScheme)

Source from the content-addressed store, hash-verified

1187// printPreInstallDisclaimer prints a warning that installed skills are unverified
1188// and should be inspected before use.
1189func printPreInstallDisclaimer(w io.Writer, cs *iostreams.ColorScheme) {
1190 fmt.Fprintf(w, "\n%s Skills are not verified by GitHub and may contain prompt injections, hidden instructions, or malicious scripts. Always review skill contents before use.\n\n", cs.WarningIcon())
1191}
1192
1193// printReviewHint warns the user to review installed skills and suggests preview commands.
1194// When sha is non-empty the suggested commands include @SHA so the user previews

Callers 3

installRunFunction · 0.85
runLocalInstallFunction · 0.85

Calls 1

WarningIconMethod · 0.80

Tested by 1