From c86ed5c4d7beaac2e8239a9e381e191815aa78d0 Mon Sep 17 00:00:00 2001 From: tomrss Date: Thu, 24 Oct 2024 11:47:01 +0200 Subject: [PATCH] core(github): Fix static analysis --- .pre-commit-config.yaml | 6 +++--- src/github/README.md | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81c8c8d..ac0c30a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: 72c60aca479dce0593d6d28e2f006dbc484d8684 # v1.8.35 + rev: v1.96.1 hooks: - id: terraform_fmt - # - id: terraform_docs - - id: terraform_tfsec + - id: terraform_docs + - id: terraform_trivy - id: terraform_validate args: - --init-args=-lockfile=readonly diff --git a/src/github/README.md b/src/github/README.md index 8bb8de0..46dfa60 100644 --- a/src/github/README.md +++ b/src/github/README.md @@ -31,16 +31,14 @@ No modules. | [github_branch_protection.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/branch_protection) | resource | | [github_repository.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository) | resource | | [github_repository_environment.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_environment) | resource | -| [github_team.product_admin](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/team) | data source | -| [github_team.service_line_admin](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/team) | data source | +| [github_team.all](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/team) | data source | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [product\_name](#input\_product\_name) | Name of the product or service these repos belong to | `string` | n/a | yes | -| [repositories](#input\_repositories) | Repositories to be managed |
list(object({
name = string
description = string
visibility = string
topics = optional(set(string), null)
homepage_url = optional(string, null)
from_template = optional(string, null)
is_template = optional(bool, false)
archived = optional(bool, false)
environments = optional(list(object({
name = string
requires_approval = optional(bool, false)
variables = optional(map(string), {})
})), [])
}))
| n/a | yes | -| [service\_line](#input\_service\_line) | Name of the service line owner of these repos | `string` | n/a | yes | +| [repositories](#input\_repositories) | Repositories to be managed |
list(object({
name = string
description = string
visibility = string
topics = optional(set(string), null)
homepage_url = optional(string, null)
from_template = optional(string, null)
is_template = optional(bool, false)
archived = optional(bool, false)
rule_bypassing_teams = set(string)
environments = optional(list(object({
name = string
variables = optional(map(string), {})
require_review_by_teams = optional(set(string), [])
})), [])
}))
| n/a | yes | +| [service\_line](#input\_service\_line) | name of the service line | `string` | n/a | yes | ## Outputs