2025-11-02 10:45:50 +01:00
2025-11-01 23:32:29 +01:00
2025-11-01 23:32:29 +01:00
2025-11-02 10:45:50 +01:00
2025-11-02 10:45:50 +01:00
2025-11-01 23:32:29 +01:00
2025-11-01 23:32:29 +01:00
2025-11-02 10:45:50 +01:00
2025-11-02 10:45:50 +01:00

Requirements

Name Version
gitlab 18.0.0

Providers

Name Version
gitlab 18.0.0

Modules

No modules.

Resources

Name Type
gitlab_branch_protection.protected_branches resource
gitlab_project.project resource
gitlab_project_approval_rule.this resource
gitlab_project_custom_attribute.custom_attributes resource
gitlab_project_environment.environments resource
gitlab_project_job_token_scopes.ci_token_scope resource
gitlab_project_level_mr_approvals.settings resource
gitlab_project_push_rules.push_rule resource
gitlab_project_variable.scoped_variables resource
gitlab_project_variable.variable resource
gitlab_tag_protection.protected_tags resource
gitlab_group.parent data source
gitlab_group.token_scope_groups data source
gitlab_project.token_scope_projects data source

Inputs

Name Description Type Default Required
allow_merge_on_skipped_pipeline Set to true if you want to treat skipped pipelines as if they finished with success. bool true no
allowed_avatar_types_json Path to allowed avatar types json string "" no
allowed_project_types_json Path to allowed project types json string "" no
approval_settings Ustawienia zasad approvals na poziomie merge requestów.
object({
disable_overriding_approvers_per_merge_request = optional(bool, true)
merge_requests_author_approval = optional(bool, false)
merge_requests_disable_committers_approval = optional(bool, true)
reset_approvals_on_push = optional(bool, true)
required_password_to_approve = optional(bool, false)
selective_code_owner_removals = optional(bool, false)
})
{} no
approvals Mapa reguł approval dla projektu. Klucz = nazwa reguły.
map(object({
approvals_required = number
users = optional(list(number), [])
groups = optional(list(number), [])
applies_to_all_protected_branches = optional(bool, true)
protected_branch_ids = optional(list(number), null)
rule_type = optional(string, "regular") # np. regular
any_approver
report_type = optional(string, null) # np. coverage
scan_finding
archived Archived project bool false no
attributes custom attributes to be set for the project map(string) {} no
auto_cancel_pending_pipelines Auto-cancel pending pipelines. This isnt a boolean, but enabled/disabled. string "enabled" no
avatar Type of the avatar for the group (default: from type) string "" no
build_git_strategy The Git strategy. Defaults to fetch. string "clone" no
build_timeout The maximum amount of time, in seconds, that a job can run. number 3600 no
ci_config_path CI PATH string null no
ci_variables CI variables to be set for the group
map(object({
value = string
description = optional(string)
protected = optional(bool)
masked = optional(bool)
environment_scope = optional(string)
}))
null no
default_branch Default branch string "master" no
description Repository Description string n/a yes
environments Project environments map(string) {} no
forked_from_project_id Forked from number 0 no
group_runners_enabled Enable group runners for this project. bool true no
is_enable_conventional_commits_push_rule Enable conventional commits push rule bool false no
is_enabled_checkmarx Enable checkmarx bool true no
is_enabled_sonarqube Enable sonarqube bool true no
name Repository Name string n/a yes
only_allow_merge_if_pipeline_succeeds Set to true if you want allow merges only if a pipeline succeeds. bool false no
parent_group Parent Group string n/a yes
project_type Project type string "" no
protected_branches Protected branches
map(object({
push_access_level = string
merge_access_level = string
}))
{
"master": {
"merge_access_level": "developer",
"push_access_level": "maintainer"
}
}
no
protected_tags Protected tags
map(object({
create_access_level = string
}))
{
"v*": {
"create_access_level": "maintainer"
}
}
no
scoped_variables {
"VARIABLE_NAME" = {
description = "opis"
protected = optional(bool, false)
masked = optional(bool, false)
values = {
"environment_name" = "value"
"environment_2" = "value2"
}
}
}
map(object({
description = optional(string, "")
protected = optional(bool, false)
masked = optional(bool, false)
values = map(string)
}))
{} no
shared_runners_enabled Enable shared runners for this project. bool true no
sib_aplikacja [UPW] ID Aplikacja w zasobach SIB string "" no
tags Tags list(string) [] no
token_scope_groups CI_JOB_TOKEN group allowlist list(string) [] no
token_scope_repositories CI_JOB_TOKEN repositories allowlist list(string) [] no

Outputs

No outputs.

Description
Repozytorium w GL
Readme 46 KiB
Languages
HCL 100%