Skip to content

Commit caa4ce5

Browse files
committed
Update GitHub Action and PR template
1 parent 2f56de7 commit caa4ce5

10 files changed

+97
-93
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/enhancement-request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Pull Request Title
2+
3+
## Description
4+
5+
Please provide a brief description of the changes introduced by this pull request.
6+
7+
## Checklist
8+
9+
- [ ] I have updated the documentation where necessary and have worked to make all my tests pass.
10+
- [ ] I have considered the impact on existing infrastructure and included necessary migration steps, if applicable.
11+
12+
## Related Issues
13+
14+
If this PR addresses any issues, please link them here.
15+
16+
## Additional Notes
17+
18+
Include any additional notes or context that reviewers should be aware of.

.github/workflows/org-checkov.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/org-md-lint.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/org-release.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/org-terraform-docs.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/terraform.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Terraform Module
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
TERRAFORM_MODULE:
11+
# Terraform module workflow reference
12+
uses: CiscoOpsStack/ops_stack_github_actions/.github/workflows/terraform_module.yml@main
13+
secrets:
14+
GH_PAT_READ_TOKEN: "${{ secrets.GH_PAT_READ_TOKEN }}"
15+
with:
16+
TF_VERSION: 1.5.0

.pre-commit-config.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
# Required: Terraform, TFENV, Trivy, TFLINT, terraform-docs, tflint,
3+
repos:
4+
- repo: "https://github.com/pre-commit/pre-commit-hooks"
5+
rev: v4.6.0
6+
hooks:
7+
- id: check-added-large-files
8+
- id: check-byte-order-marker
9+
- id: check-executables-have-shebangs
10+
- id: check-json
11+
- id: check-merge-conflict
12+
- id: check-symlinks
13+
- id: check-xml
14+
- id: check-yaml
15+
- id: detect-aws-credentials
16+
- id: detect-private-key
17+
- id: end-of-file-fixer
18+
- id: fix-encoding-pragma
19+
- id: mixed-line-ending
20+
- id: no-commit-to-branch
21+
args:
22+
- -b
23+
- dev
24+
- -b
25+
- test
26+
- -b
27+
- stage
28+
- -b
29+
- perf
30+
- -b
31+
- prod
32+
- -b
33+
- nprd
34+
- -b
35+
- main
36+
- -b
37+
- master
38+
- id: pretty-format-json
39+
- repo: "https://github.com/gruntwork-io/pre-commit"
40+
rev: v0.1.23
41+
hooks:
42+
# - id: gofmt # context: https://github.com/gruntwork-io/pre-commit/issues/67
43+
- id: shellcheck
44+
- id: terraform-fmt
45+
- id: terraform-validate
46+
args:
47+
- --args=-no-color
48+
- id: terragrunt-hclfmt
49+
- id: tflint
50+
- id: yapf
51+
- repo: https://github.com/antonbabenko/pre-commit-terraform
52+
rev: v1.89.1
53+
hooks:
54+
- id: terraform_docs
55+
args:
56+
- --args=--output-file README.md
57+
- --args=--output-mode inject
58+
- id: terraform_trivy
59+
args:
60+
- --args=--severity HIGH,CRITICAL
61+
- --args=--ignorefile ./.trivyignore
62+
- --args=--skip-dirs="**/.terraform"
63+
- --args=--skip-dirs="*/modules"

0 commit comments

Comments
 (0)