Skip to content

Commit 0f9d331

Browse files
author
Christina Harlow
committed
starter setup
0 parents  commit 0f9d331

File tree

8 files changed

+463
-0
lines changed

8 files changed

+463
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Terraform fmt and validate'
2+
3+
# Terraform linting & formatting checks;
4+
# Required files & documentation checks;
5+
# Required metadata checks (e.g. terraform.required_version);
6+
# Security checks, including aspects like secrets scanning & approved providers used.
7+
8+
on:
9+
- pull_request
10+
11+
env:
12+
tf_version: 'latest'
13+
tf_working_dir: '.'
14+
15+
jobs:
16+
terraform:
17+
name: 'Terraform'
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: 'Checkout'
22+
uses: actions/checkout@master
23+
24+
- name: 'Terraform format'
25+
uses: hashicorp/terraform-github-actions@master
26+
with:
27+
tf_actions_version: ${{ env.tf_version }}
28+
tf_actions_subcommand: 'fmt'
29+
tf_actions_working_dir: ${{ env.tf_working_dir }}
30+
tf_actions_comment: false
31+
args: '-recursive'

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Local .terraform directories
2+
**/.terraform/*
3+
4+
# .tfstate files
5+
*.tfstate
6+
*.tfstate.*
7+
8+
# .tfvars files
9+
*.tfvars

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-executables-have-shebangs
9+
- repo: https://github.com/Yelp/detect-secrets
10+
rev: v1.0.1
11+
hooks:
12+
- id: detect-secrets
13+
args: ['--baseline', '.secrets.baseline']
14+
exclude: Pipfile.lock
15+
- repo: git://github.com/detailyang/pre-commit-shell
16+
rev: v1.0.6
17+
hooks:
18+
- id: shell-lint
19+
- repo: https://github.com/antonbabenko/pre-commit-terraform
20+
rev: v1.57.0
21+
hooks:
22+
- id: terraform_fmt
23+
exclude: \.terraform\/.*$
24+
- id: terraform_docs

.secrets.baseline

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"version": "1.1.0",
3+
"plugins_used": [
4+
{
5+
"name": "ArtifactoryDetector"
6+
},
7+
{
8+
"name": "AWSKeyDetector"
9+
},
10+
{
11+
"name": "AzureStorageKeyDetector"
12+
},
13+
{
14+
"name": "Base64HighEntropyString",
15+
"limit": 4.5
16+
},
17+
{
18+
"name": "BasicAuthDetector"
19+
},
20+
{
21+
"name": "CloudantDetector"
22+
},
23+
{
24+
"name": "HexHighEntropyString",
25+
"limit": 3.0
26+
},
27+
{
28+
"name": "IbmCloudIamDetector"
29+
},
30+
{
31+
"name": "IbmCosHmacDetector"
32+
},
33+
{
34+
"name": "JwtTokenDetector"
35+
},
36+
{
37+
"name": "KeywordDetector",
38+
"keyword_exclude": ""
39+
},
40+
{
41+
"name": "MailchimpDetector"
42+
},
43+
{
44+
"name": "NpmDetector"
45+
},
46+
{
47+
"name": "PrivateKeyDetector"
48+
},
49+
{
50+
"name": "SlackDetector"
51+
},
52+
{
53+
"name": "SoftlayerDetector"
54+
},
55+
{
56+
"name": "SquareOAuthDetector"
57+
},
58+
{
59+
"name": "StripeDetector"
60+
},
61+
{
62+
"name": "TwilioKeyDetector"
63+
}
64+
],
65+
"filters_used": [
66+
{
67+
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
68+
},
69+
{
70+
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
71+
"min_level": 2
72+
},
73+
{
74+
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
75+
},
76+
{
77+
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
78+
},
79+
{
80+
"path": "detect_secrets.filters.heuristic.is_lock_file"
81+
},
82+
{
83+
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
84+
},
85+
{
86+
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
87+
},
88+
{
89+
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
90+
},
91+
{
92+
"path": "detect_secrets.filters.heuristic.is_sequential_string"
93+
},
94+
{
95+
"path": "detect_secrets.filters.heuristic.is_swagger_file"
96+
},
97+
{
98+
"path": "detect_secrets.filters.heuristic.is_templated_secret"
99+
}
100+
],
101+
"results": {},
102+
"generated_at": "2021-11-18T18:29:18Z"
103+
}

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
charlow
2+
kkleemola
3+
moz-astults

Pipfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
pre-commit = "*"
8+
detect-secrets = "*"
9+
10+
[dev-packages]
11+
12+
[requires]
13+
python_version = "3.9"

Pipfile.lock

Lines changed: 193 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)