Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .checkov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
block-list-secret-scan: []
compact: true
directory:
- .
download-external-modules: false
evaluate-variables: true
framework:
- all
output:
- cli
quiet: true
soft-fail: true
summary-position: top
19 changes: 19 additions & 0 deletions .github/workflows/opentofu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: OpenTofu

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read
pull-requests: write

jobs:
opentofu:
uses: makeitworkcloud/shared-workflows/.github/workflows/opentofu.yml@main
secrets:
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# vim swap files
**/*.sw[po]

# don't commit terraform state or lock. the repo code is the only state we care about.
# the provider state cache is auto-upgraded by default to ensure compatibility with upstream cloud provider APIs
**/.terraform.lock.hcl
**/.terraform

# IDE Folders
**/.vscode

# Mac Finder cache
**/.DS_Store

# Plan output
plan-output.txt
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-private-key
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.100.0
hooks:
- id: terraform_validate
args:
- --hook-config=--retry-once-with-cleanup=true
- --args=-no-color
- --tf-init-args=-reconfigure
- --tf-init-args=-upgrade
- id: terraform_tflint
args:
- --args=--minimum-failure-severity=error
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
- id: terraform_checkov
args:
- --args=--config-file __GIT_WORKING_DIR__/.checkov.yml
- id: terraform_fmt
args:
- --args=-no-color
- --args=-diff
- --args=-recursive
- id: terraform_docs
args:
- --args=--config=.terraform-docs.yml
3 changes: 3 additions & 0 deletions .sops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
creation_rules:
- age: age152ek83tm4fj5u70r3fecytn4kg7c5xca24erjchxexx4pfqg6das7q763l
18 changes: 18 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
formatter: "markdown"

output:
file: "README.md"
mode: replace

settings:
color: false
lockfile: false

sort:
enabled: true
by: name

# recursive can't be enabled until this bug is fixed:
# https://github.com/terraform-docs/terraform-docs/issues/654
recursive:
enabled: false
12 changes: 12 additions & 0 deletions .tflint.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugin "terraform" {
enabled = true
preset = "recommended"
}

rule "terraform_required_providers" {
enabled = false
}

rule "terraform_required_version" {
enabled = false
}
5 changes: 5 additions & 0 deletions .tfsec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
min_required_version: 1.28.1
minimum_severity: LOW
severity_overrides: {}
exclude: []
Loading