MCPcopy
hub / github.com/github/github-mcp-server / LabelGetFileContents

Function LabelGetFileContents

pkg/ifc/ifc.go:104–109  ·  view source on GitHub ↗

LabelGetFileContents returns the IFC label for a get_file_contents result. Public repository file contents may be authored by anyone via pull requests and are therefore untrusted. In private repositories only collaborators can land changes, so contents are treated as trusted.

(isPrivate bool)

Source from the content-addressed store, hash-verified

102// and are therefore untrusted. In private repositories only collaborators can
103// land changes, so contents are treated as trusted.
104func LabelGetFileContents(isPrivate bool) SecurityLabel {
105 if isPrivate {
106 return PrivateTrusted()
107 }
108 return PublicUntrusted()
109}
110
111// LabelSearchIssues returns the IFC label for a multi-repository search
112// result, joining per-repository labels across all matched repositories.

Callers

nothing calls this directly

Calls 2

PrivateTrustedFunction · 0.85
PublicUntrustedFunction · 0.85

Tested by

no test coverage detected