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)
| 313 | // Confidentiality derives from the project's own privacy — private projects |
| 314 | // restrict the reader set, while public projects are universally readable. |
| 315 | func 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. |