Example
To create theGitHubHandler
object with the GitHub credentials:
The GitHubHandler
connects to the GitHub API using an access token and base URL. It enables seamless interaction with repositories, users, and organizational data.
The fetch_all_pages method retrieves data across paginated GitHub API responses, such as repositories, branches, pull requests, or secrets. url = f”/user/repos” headers = github_handler._common_headers
Fetches details about the authenticated GitHub organization.
Retrieves information about the authenticated GitHub user.
Checks MFA configuration for a single user (internal helper).
Collects MFA enforcement evidence across organization members.
Processes repositories internally for compliance checks.
Summarizes details about a given repository.
Lists all members in an organization.
Fetches branch details for a repository (internal helper).
Gets all branches of a repository.
Fetches branch protection rules for a branch (internal helper).
Gets branch protection details for all branches in a repository.
Fetches pull requests for a given repository (internal helper).
Gets all pull requests for a repository.
Retrieves Dependabot alerts for a repository (internal helper).
Fetches Dependabot alerts across repositories.
Lists Dependabot secrets for a repository.
Retrieves dependencies for a repository (internal helper).
Lists dependencies across repositories.
Fetches packages for an organization or user.