Skip to content

Commit

Permalink
update template to pass pre-check
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtus committed Dec 5, 2024
1 parent 6c31a44 commit 531d1cb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .checkov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ skip-check:
- CKV_GCP_35
# base64 high entropy check causes too many false positives
- CKV_SECRET_6
# allow usage of default namespace in kubernetes
- CKV_K8S_21
3 changes: 2 additions & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
# Changes here will be overwritten by Copier
_commit: v2.31.1
_commit: v2.42.0
_src_path: gh:remerge/template
project_id: terraform-modules
project_license: apache-2.0
project_name: Terraform Modules
project_owner: core
project_type: terraform-module
use_python: false
use_ruby: false
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# shellcheck shell=bash

# Turns on shell execution strictness. This will force the .envrc
# evaluation context to exit immediately if:
#
Expand Down
17 changes: 7 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
default_stages:
- commit
- pre-commit

default_install_hook_types:
- commit-msg
Expand All @@ -10,18 +10,15 @@ default_install_hook_types:
repos:
# https://github.com/pre-commit/pre-commit-hooks/tags
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
Expand All @@ -44,7 +41,7 @@ repos:

# https://github.com/igorshubovych/markdownlint-cli/tags
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: "v0.41.0"
rev: "v0.42.0"
hooks:
- id: markdownlint-fix
name: markdownlint
Expand All @@ -71,18 +68,18 @@ repos:

# https://github.com/rhysd/actionlint/tags
- repo: https://github.com/rhysd/actionlint
rev: "v1.7.1"
rev: "v1.7.3"
hooks:
- id: actionlint-docker
name: actionlint

# https://github.com/bridgecrewio/checkov/tags
- repo: https://github.com/bridgecrewio/checkov
rev: "3.2.241"
rev: "3.2.267"
hooks:
- id: checkov
name: checkov
args: [--config-file=.checkov.yml]
args: [--config-file=.checkov.yml, --skip-path=vendor]

# https://github.com/jorisroovers/gitlint/tags
- repo: https://github.com/jorisroovers/gitlint
Expand All @@ -99,7 +96,7 @@ repos:

# https://github.com/antonbabenko/pre-commit-terraform/tags
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: "v1.94.1"
rev: "v1.96.1"
hooks:
- id: terraform_fmt
name: terraform-fmt
Expand Down
5 changes: 5 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ rules:
truthy:
allowed-values: ["true", "false"]
check-keys: false
braces:
max-spaces-inside: 1
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true

0 comments on commit 531d1cb

Please sign in to comment.