gitlab

Important

As of Flowpipe 1.0.0, credential has been renamed to connection. The gitlab credential resource is deprecated and will be removed in a future version of Flowpipe. Use the gitlab connection instead.

The gitlab credential can be used to access GitLab resources.

credential "gitlab" "my_gitlab_token" {
token = "glpat-..."
}

Arguments

NameTypeRequired?Description
tokenStringOptionalAPI access token

All arguments are optional, and a gitlab credential with no arguments will behave the same as the default credential.

Default Credential

The gitlab credential type includes an implicit, default credential (credential.gitlab.default) that will be configured to set the token to the GITLAB_TOKEN environment variable.

credential "gitlab" "default" {
token = env("GITLAB_TOKEN")
}