Skip to main content

set_git_credential

Function set_git_credential 

Source
pub async fn set_git_credential(
    configuration: &Configuration,
    workspace: &str,
    set_git_credential_request: SetGitCredentialRequest,
) -> Result<String, Error<SetGitCredentialError>>
Expand description

Stores the access token a git repository authenticates with, so it does not have to be written into the repository URL or a workspace variable. The token is write-only: it is served only to a git-sync job that presents its own job token, and a fork of this workspace reads this copy instead of holding one of its own. Requires workspace admin.