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

Function LabelProject

pkg/ifc/ifc.go:315–320  ·  view source on GitHub ↗

LabelProject returns the IFC label for GitHub Project metadata (Projects v2), such as get_project results and project field definitions. Public project metadata can contain public user-authored text, so it is untrusted. Private project metadata is treated as trusted collaborator-controlled data. C

(isPrivate bool)

Source from the content-addressed store, hash-verified

313// Confidentiality derives from the project's own privacy — private projects
314// restrict the reader set, while public projects are universally readable.
315func LabelProject(isPrivate bool) SecurityLabel {
316 if isPrivate {
317 return PrivateTrusted()
318 }
319 return PublicUntrusted()
320}
321
322// LabelProjectList returns the IFC label for a list_projects result, joining
323// the per-project labels across every returned project.

Callers 2

ProjectsGetFunction · 0.92
TestLabelProjectFunction · 0.85

Calls 2

PrivateTrustedFunction · 0.85
PublicUntrustedFunction · 0.85

Tested by 1

TestLabelProjectFunction · 0.68