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

Function LabelListIssues

pkg/ifc/ifc.go:81–86  ·  view source on GitHub ↗

LabelListIssues returns the IFC label for a list_issues result. Public repositories are universally readable; private repositories are restricted to their collaborators (resolved client-side from the marker). Public repository issue contents are attacker-controllable, while private repository issues

(isPrivate bool)

Source from the content-addressed store, hash-verified

79// Public repository issue contents are attacker-controllable, while private
80// repository issues are treated as trusted collaborator-authored data.
81func LabelListIssues(isPrivate bool) SecurityLabel {
82 if isPrivate {
83 return PrivateTrusted()
84 }
85 return PublicUntrusted()
86}
87
88// LabelRepoUserContent returns the IFC label for user-authored content scoped
89// to a repository when that tool has not opted into a more specific integrity

Callers 2

ListIssuesFunction · 0.92
TestLabelListIssuesFunction · 0.85

Calls 2

PrivateTrustedFunction · 0.85
PublicUntrustedFunction · 0.85

Tested by 1

TestLabelListIssuesFunction · 0.68