Skip to main content

link_github_organization

Function link_github_organization 

Source
pub async fn link_github_organization(
    ts: Option<SharedTokenSource>,
    org: &str,
    github_login: &str,
    a: &GitHubAuthorization,
) -> Result<LinkedGitHub>
Expand description

Links a GitHub account to the Chainguard organization, using an authorization from authorize_github. github_login is the account to link, an organization or a user; empty means the GitHub user who authorized. The Chainguard GitHub App must be installed on the account (otherwise PlatformError::github_app_not_installed), and you must own it. An account can be linked to one Chainguard organization at a time.