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({ |
{} |
no |
| approvals | Mapa reguł approval dla projektu. Klucz = nazwa reguły. | map(object({ |
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 isn’t 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({ |
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({ |
{ |
no |
| protected_tags | Protected tags | map(object({ |
{ |
no |
| scoped_variables | { "VARIABLE_NAME" = { description = "opis" protected = optional(bool, false) masked = optional(bool, false) values = { "environment_name" = "value" "environment_2" = "value2" } } } |
map(object({ |
{} |
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
Languages
HCL
100%