Skip to content

Commit

Permalink
chore: repository cleanup (#19)
Browse files Browse the repository at this point in the history
pre-commit hooks have been replaced with trunk and GitHub Actions. 

Trunk overlapped with pre-commit with regards to terraform formatting
and linting; to simplify things trunk was chosen as the single tool to
use.
  • Loading branch information
chris3ware committed Feb 28, 2023
1 parent 12fcea0 commit 48dc491
Show file tree
Hide file tree
Showing 15 changed files with 221 additions and 865 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tfsec-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ jobs:
#* | keeps new lines as new lines; 'literal style'
#* - after > 'the chomping indicator' overrides the default behaviour
#* 'clip' which adds a new line at the end, by stripping 'strip' it.
#tfsec_args: >-
# --tfvars-file=terraform/repos.auto.tfvars
# --tfvars-file=terraform/users.auto.tfvars
tfsec_args: >-
--tfvars-file=terraform.tfvars
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ crash.*.log
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
#
terraform.tfvars
#terraform.tfvars
terraform/vpc/terraform.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
Expand Down
46 changes: 0 additions & 46 deletions .pre-commit-config.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*out
*logs
*actions
*notifications
plugins
user_trunk.yaml
user.yaml
33 changes: 33 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 0.1
cli:
version: 1.5.1
plugins:
sources:
- id: trunk
ref: v0.0.12
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- [email protected]
- git-diff-check
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
ignore:
#* Prevent checking CHANGELOG.md files generated by semantic-release
- linters: [prettier, markdownlint]
paths:
- CHANGELOG.md
- terraform/**/README.md #* skip documents generates by terraform-docs
runtimes:
enabled:
- [email protected]
- [email protected]
actions:
enabled:
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
- trunk-upgrade-available
Loading

0 comments on commit 48dc491

Please sign in to comment.