{"id":21238746,"url":"https://github.com/inetum-poland/terraform-github-repository","last_synced_at":"2026-05-21T04:04:48.331Z","repository":{"id":231303808,"uuid":"781431340","full_name":"Inetum-Poland/terraform-github-repository","owner":"Inetum-Poland","description":"Inetum Poland TF module github-repository.","archived":false,"fork":false,"pushed_at":"2025-02-24T08:54:16.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-24T09:34:46.863Z","etag":null,"topics":["github","inetum","poland","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inetum-Poland.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-03T11:20:19.000Z","updated_at":"2025-02-24T08:54:17.000Z","dependencies_parsed_at":"2024-05-10T11:48:37.661Z","dependency_job_id":"1e8883e0-d575-4bc5-9200-77ae10106fba","html_url":"https://github.com/Inetum-Poland/terraform-github-repository","commit_stats":null,"previous_names":["inetum-poland/tf-module-github-repository","inetum-poland/terraform-github-repository"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inetum-Poland%2Fterraform-github-repository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inetum-Poland%2Fterraform-github-repository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inetum-Poland%2Fterraform-github-repository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inetum-Poland%2Fterraform-github-repository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inetum-Poland","download_url":"https://codeload.github.com/Inetum-Poland/terraform-github-repository/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243679336,"owners_count":20329919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","inetum","poland","terraform-module"],"created_at":"2024-11-21T00:38:07.833Z","updated_at":"2026-05-21T04:04:43.282Z","avatar_url":"https://github.com/Inetum-Poland.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preconfigured Terraform module for `github_repository`.\n\n[![pre_commit](https://github.com/Inetum-Poland/tf-module-github-repository/actions/workflows/pre_commit.yml/badge.svg)](https://github.com/Inetum-Poland/tf-module-github-repository/actions/workflows/pre_commit.yml) [![trufflehog](https://github.com/Inetum-Poland/tf-module-github-repository/actions/workflows/trufflehog.yaml/badge.svg)](https://github.com/Inetum-Poland/tf-module-github-repository/actions/workflows/trufflehog.yaml)\n\nThis module creates a preconfigured GitHub repository.\n\n\u003e [!IMPORTANT]\n\u003e __This repository uses the [Conventional Commits](https://www.conventionalcommits.org/).__\n\u003e\n\u003e For more information please see the [Conventional Commits documentation](https://www.conventionalcommits.org/en/v1.0.0/#summary).\n\n\u003e [!IMPORTANT]\n\u003e __This repository uses the [pre-commit](https://pre-commit.com/).__\n\u003e\n\u003e Please be respectful while contributing and after cloning this repo install the pre-commit hooks.\n\u003e ```bash\n\u003e \u003e pre-commit install --install-hooks -t pre-commit -t commit-msg\n\u003e ```\n\u003e For more information please see the [pre-commit documentation](https://pre-commit.com/).\n\n\u003c!-- BEGIN_AUTOMATED_TF_DOCS_BLOCK --\u003e\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_github\"\u003e\u003c/a\u003e [github](#provider\\_github) | 6.3.1 |\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_github\"\u003e\u003c/a\u003e [github](#requirement\\_github) | ~\u003e 6.0 |\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [github_actions_secret.secret](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_secret) | resource |\n| [github_actions_variable.variable](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_variable) | resource |\n| [github_branch_default.branch](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/branch_default) | resource |\n| [github_branch_protection.branch](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/branch_protection) | resource |\n| [github_dependabot_secret.secret](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/dependabot_secret) | resource |\n| [github_issue_label.label](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/issue_label) | resource |\n| [github_repository.repository](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository) | resource |\n| [github_repository_ruleset.ruleset](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_ruleset) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_github_actions_secret\"\u003e\u003c/a\u003e [github\\_actions\\_secret](#input\\_github\\_actions\\_secret) | Actions secret repository settings object `github_actions_secret`. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_github_actions_variable\"\u003e\u003c/a\u003e [github\\_actions\\_variable](#input\\_github\\_actions\\_variable) | Actions variable repository settings object `github_actions_variable`. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_github_branch_default\"\u003e\u003c/a\u003e [github\\_branch\\_default](#input\\_github\\_branch\\_default) | Default branch repository settings object `github_branch_default`. | `string` | `null` | no |\n| \u003ca name=\"input_github_branch_protection\"\u003e\u003c/a\u003e [github\\_branch\\_protection](#input\\_github\\_branch\\_protection) | Branch protection repository settings object `github_branch_protection`. | \u003cpre\u003emap(object({\u003cbr/\u003e    pattern = string\u003cbr/\u003e\u003cbr/\u003e    allows_deletions                = optional(bool, false)\u003cbr/\u003e    allows_force_pushes             = optional(bool, false)\u003cbr/\u003e    enforce_admins                  = optional(bool, false)\u003cbr/\u003e    force_push_bypassers            = optional(list(string), [])\u003cbr/\u003e    lock_branch                     = optional(bool, false)\u003cbr/\u003e    require_conversation_resolution = optional(bool, true)\u003cbr/\u003e    require_signed_commits          = optional(bool, false)\u003cbr/\u003e    required_linear_history         = optional(bool, false)\u003cbr/\u003e\u003cbr/\u003e    required_pull_request_reviews = optional(object({\u003cbr/\u003e      dismiss_stale_reviews           = optional(bool, true)\u003cbr/\u003e      require_code_owner_reviews      = optional(bool, true)\u003cbr/\u003e      require_last_push_approval      = optional(bool, true)\u003cbr/\u003e      required_approving_review_count = optional(number, 1)\u003cbr/\u003e      restrict_dismissals             = optional(bool, false)\u003cbr/\u003e    }), {})\u003cbr/\u003e\u003cbr/\u003e    required_status_checks = optional(object({\u003cbr/\u003e      contexts = optional(list(string), [])\u003cbr/\u003e      strict   = optional(bool, true)\u003cbr/\u003e    }), {})\u003cbr/\u003e  }))\u003c/pre\u003e | `{}` | no |\n| \u003ca name=\"input_github_dependabot_secret\"\u003e\u003c/a\u003e [github\\_dependabot\\_secret](#input\\_github\\_dependabot\\_secret) | Dependabot secret repository settings object `github_dependabot_secret`. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_github_issue_label\"\u003e\u003c/a\u003e [github\\_issue\\_label](#input\\_github\\_issue\\_label) | Issue labels repository settings object `github_issue_label`. | \u003cpre\u003emap(object({\u003cbr/\u003e    name        = string\u003cbr/\u003e    color       = string\u003cbr/\u003e    description = optional(string, null)\u003cbr/\u003e  }))\u003c/pre\u003e | `{}` | no |\n| \u003ca name=\"input_github_repository\"\u003e\u003c/a\u003e [github\\_repository](#input\\_github\\_repository) | Repository settings object `github_repository`. | \u003cpre\u003eobject({\u003cbr/\u003e    name        = string\u003cbr/\u003e    description = optional(string)\u003cbr/\u003e    topics      = optional(list(string), [])\u003cbr/\u003e    is_template = optional(bool, false)\u003cbr/\u003e    visibility  = optional(string, \"private\")\u003cbr/\u003e\u003cbr/\u003e    # auto_init   = optional(bool, true)\u003cbr/\u003e\u003cbr/\u003e    has_downloads   = optional(bool, false)\u003cbr/\u003e    has_issues      = optional(bool, false)\u003cbr/\u003e    has_projects    = optional(bool, false)\u003cbr/\u003e    has_wiki        = optional(bool, false)\u003cbr/\u003e    has_discussions = optional(bool, false)\u003cbr/\u003e    homepage_url    = optional(string)\u003cbr/\u003e\u003cbr/\u003e    allow_merge_commit          = optional(bool, true)\u003cbr/\u003e    allow_squash_merge          = optional(bool, true)\u003cbr/\u003e    allow_rebase_merge          = optional(bool, true)\u003cbr/\u003e    allow_auto_merge            = optional(bool, false)\u003cbr/\u003e    allow_update_branch         = optional(bool, true)\u003cbr/\u003e    squash_merge_commit_title   = optional(string, null) # \"PR_TITLE\"\u003cbr/\u003e    squash_merge_commit_message = optional(string, null) # \"PR_BODY\"\u003cbr/\u003e    merge_commit_title          = optional(string, null) # \"PR_TITLE\"\u003cbr/\u003e    merge_commit_message        = optional(string, null) # \"PR_BODY\"\u003cbr/\u003e    delete_branch_on_merge      = optional(bool, true)\u003cbr/\u003e\u003cbr/\u003e    # license_template = optional(string)\u003cbr/\u003e\u003cbr/\u003e    archive_on_destroy                      = optional(bool, true)\u003cbr/\u003e    web_commit_signoff_required             = optional(bool, false)\u003cbr/\u003e    vulnerability_alerts                    = optional(bool, true)\u003cbr/\u003e    ignore_vulnerability_alerts_during_read = optional(bool, true)\u003cbr/\u003e\u003cbr/\u003e    template = optional(object({\u003cbr/\u003e      owner                = string\u003cbr/\u003e      repository           = any\u003cbr/\u003e      include_all_branches = optional(bool, false)\u003cbr/\u003e    }), null)\u003cbr/\u003e\u003cbr/\u003e    pages = optional(object({\u003cbr/\u003e      source = object({\u003cbr/\u003e        branch = string\u003cbr/\u003e        path   = string\u003cbr/\u003e      })\u003cbr/\u003e      build_type = string\u003cbr/\u003e      cname      = string\u003cbr/\u003e    }), null)\u003cbr/\u003e\u003cbr/\u003e    security_and_analysis = optional(object({\u003cbr/\u003e      advanced_security = optional(object({\u003cbr/\u003e        status = optional(string, \"enabled\")\u003cbr/\u003e      }), {})\u003cbr/\u003e      secret_scanning = optional(object({\u003cbr/\u003e        status = optional(string, \"enabled\")\u003cbr/\u003e      }), {})\u003cbr/\u003e      secret_scanning_push_protection = optional(object({\u003cbr/\u003e        status = optional(string, \"enabled\")\u003cbr/\u003e      }), {})\u003cbr/\u003e    }), {})\u003cbr/\u003e  })\u003c/pre\u003e | n/a | yes |\n| \u003ca name=\"input_github_repository_ruleset\"\u003e\u003c/a\u003e [github\\_repository\\_ruleset](#input\\_github\\_repository\\_ruleset) | Branch protection repository settings object `github_branch_protection`. | \u003cpre\u003emap(object({\u003cbr/\u003e    enforcement = string\u003cbr/\u003e    # name        = string\u003cbr/\u003e    target = string\u003cbr/\u003e    # repository  = string\u003cbr/\u003e\u003cbr/\u003e    rules = list(object({\u003cbr/\u003e      branch_name_pattern = optional(object({\u003cbr/\u003e        operator = string\u003cbr/\u003e        pattern  = string\u003cbr/\u003e        name     = optional(string, null)\u003cbr/\u003e        negate   = optional(bool, false)\u003cbr/\u003e      }), null)\u003cbr/\u003e\u003cbr/\u003e      commit_author_email_pattern = optional(object({\u003cbr/\u003e        operator = string\u003cbr/\u003e        pattern  = string\u003cbr/\u003e        name     = optional(string, null)\u003cbr/\u003e        negate   = optional(bool, false)\u003cbr/\u003e      }), null)\u003cbr/\u003e\u003cbr/\u003e      commit_message_pattern = optional(object({\u003cbr/\u003e        operator = string\u003cbr/\u003e        pattern  = string\u003cbr/\u003e        name     = optional(string, null)\u003cbr/\u003e        negate   = optional(bool, false)\u003cbr/\u003e      }), null)\u003cbr/\u003e\u003cbr/\u003e      committer_email_pattern = optional(object({\u003cbr/\u003e        operator = string\u003cbr/\u003e        pattern  = string\u003cbr/\u003e        name     = optional(string, null)\u003cbr/\u003e        negate   = optional(bool, false)\u003cbr/\u003e      }), null)\u003cbr/\u003e\u003cbr/\u003e      creation         = optional(bool, false)\u003cbr/\u003e      deletion         = optional(bool, false)\u003cbr/\u003e      non_fast_forward = optional(bool, false)\u003cbr/\u003e\u003cbr/\u003e      pull_request = optional(object({\u003cbr/\u003e        dismiss_stale_reviews_on_push     = optional(bool, false)\u003cbr/\u003e        require_code_owner_reviews        = optional(bool, false)\u003cbr/\u003e        require_last_push_approval        = optional(bool, false)\u003cbr/\u003e        required_approving_review_count   = optional(number, 0)\u003cbr/\u003e        required_review_thread_resolution = optional(bool, false)\u003cbr/\u003e      }), null)\u003cbr/\u003e\u003cbr/\u003e      required_deployments = optional(object({\u003cbr/\u003e        required_deployment_environments = list(string)\u003cbr/\u003e      }), null)\u003cbr/\u003e\u003cbr/\u003e      required_linear_history = optional(bool, false)\u003cbr/\u003e      required_signatures     = optional(bool, false)\u003cbr/\u003e\u003cbr/\u003e      required_status_checks = optional(object({\u003cbr/\u003e        required_check = list(object({\u003cbr/\u003e          context        = string\u003cbr/\u003e          integration_id = optional(number, null)\u003cbr/\u003e        }))\u003cbr/\u003e\u003cbr/\u003e        strict_required_status_checks_policy = optional(bool, false)\u003cbr/\u003e      }), null)\u003cbr/\u003e\u003cbr/\u003e      tag_name_pattern = optional(object({\u003cbr/\u003e        operator = string\u003cbr/\u003e        pattern  = string\u003cbr/\u003e        name     = optional(string, null)\u003cbr/\u003e        negate   = optional(bool, false)\u003cbr/\u003e      }), null)\u003cbr/\u003e\u003cbr/\u003e      update                        = optional(bool, false)\u003cbr/\u003e      update_allows_fetch_and_merge = optional(bool, false)\u003cbr/\u003e    }))\u003cbr/\u003e\u003cbr/\u003e    bypass_actors = optional(list(object({\u003cbr/\u003e      actor_id    = number\u003cbr/\u003e      actor_type  = optional(string, null)\u003cbr/\u003e      bypass_mode = optional(string, null)\u003cbr/\u003e    })), null)\u003cbr/\u003e\u003cbr/\u003e    conditions = optional(object({\u003cbr/\u003e      ref_name = optional(object({\u003cbr/\u003e        exclude = optional(list(string), [])\u003cbr/\u003e        include = optional(list(string), [])\u003cbr/\u003e      }), null)\u003cbr/\u003e    }), null)\u003cbr/\u003e  }))\u003c/pre\u003e | `{}` | no |\n\n## Modules\n\nNo modules.\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_out\"\u003e\u003c/a\u003e [out](#output\\_out) | Repository settings object `github_repository`. |\n\u003c!-- END_AUTOMATED_TF_DOCS_BLOCK --\u003e\n\n## Contributions\n\nThis module is created by Inetum Poland. Feel free to contribute to it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finetum-poland%2Fterraform-github-repository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finetum-poland%2Fterraform-github-repository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finetum-poland%2Fterraform-github-repository/lists"}