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)
| 102 | // and are therefore untrusted. In private repositories only collaborators can |
| 103 | // land changes, so contents are treated as trusted. |
| 104 | func 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. |
nothing calls this directly
no test coverage detected