Skip to main content

collect_repository_posture

Function collect_repository_posture 

Source
pub fn collect_repository_posture(
    client: &GitHubClient,
    owner: &str,
    repo: &str,
    ref_sha: &str,
) -> EvidenceState<RepositoryPosture>
Expand description

Collect repository posture evidence from the GitHub API.

Fetches CODEOWNERS, SECURITY.md, and repository settings to populate RepositoryPosture. Uses ref_sha for file lookups. Falls back to EvidenceState::Missing when the API call fails entirely, or EvidenceState::Partial when some data could not be collected.