Skip to content

Commit 7cd62df

Browse files
authored
Merge pull request #1 from terraform-do-modules/internal-424
fix: add resources and update github action
2 parents 7e874c3 + 6d08572 commit 7cd62df

31 files changed

+852
-316
lines changed

.editorconfig

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
# Uses editorconfig to maintain consistent coding styles
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Unix-style newlines with a newline ending every file
8+
[*]
9+
charset = utf-8
10+
end_of_line = lf
11+
indent_size = 2
12+
indent_style = space
13+
insert_final_newline = true
14+
max_line_length = 80
15+
trim_trailing_whitespace = true
16+
17+
[*.{tf,tfvars}]
18+
indent_size = 2
19+
indent_style = space
20+
21+
[*.md]
22+
max_line_length = 0
23+
trim_trailing_whitespace = false
24+
25+
[Makefile]
26+
tab_width = 2
27+
indent_style = tab
28+
29+
[COMMIT_EDITMSG]
30+
max_line_length = 0

.github/CODEOWNERS

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# These owners will be the default owners for everything in the repo.
2+
@terraform-do-modules/approvers @clouddrove-ci @anmolnagpal

.github/PULL_REQUEST_TEMPLATE.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## what
2+
* Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
3+
* Use bullet points to be concise and to the point.
4+
5+
## why
6+
* Provide the justifications for the changes (e.g. business case).
7+
* Describe why these changes were made (e.g. why do these commits fix the problem?)
8+
* Use bullet points to be concise and to the point.
9+
10+
## references
11+
* Link to any supporting jira issues or helpful documentation to add some context (e.g. stackoverflow).
12+
* Use `closes #123`, if this PR closes a Jira issue `#123`

.github/dependabot.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
open-pull-requests-limit: 3
13+
assignees:
14+
- "clouddrove-ci"
15+
reviewers:
16+
- "approvers"
17+
18+
- package-ecosystem: "github-actions" # See documentation for possible values
19+
directory: "/" # Location of package manifests
20+
schedule:
21+
interval: "weekly"
22+
23+
- package-ecosystem: "terraform" # See documentation for possible values
24+
directory: "/" # Location of package manifests
25+
schedule:
26+
interval: "weekly"
27+
# Add assignees
28+
assignees:
29+
- "clouddrove-ci"
30+
# Add reviewer
31+
reviewers:
32+
- "approvers"
33+
# Allow up to 3 open pull requests for pip dependencies
34+
open-pull-requests-limit: 3
35+
36+
- package-ecosystem: "terraform" # See documentation for possible values
37+
directory: "/_examples/complete" # Location of package manifests
38+
schedule:
39+
interval: "weekly"
40+
# Add assignees
41+
assignees:
42+
- "clouddrove-ci"
43+
# Add reviewer
44+
reviewers:
45+
- "approvers"
46+
# Allow up to 3 open pull requests for pip dependencies
47+
open-pull-requests-limit: 3
48+
49+
- package-ecosystem: "terraform" # See documentation for possible values
50+
directory: "/_examples/basic" # Location of package manifests
51+
schedule:
52+
interval: "weekly"
53+
# Add assignees
54+
assignees:
55+
- "clouddrove-ci"
56+
# Add reviewer
57+
reviewers:
58+
- "approvers"
59+
# Allow up to 3 open pull requests for pip dependencies
60+
open-pull-requests-limit: 3

.github/workflows/auto_assignee.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto Assign PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
workflow_dispatch:
8+
jobs:
9+
assign-pr:
10+
uses: clouddrove/github-shared-workflows/.github/workflows/auto_assignee.yml@master
11+
secrets:
12+
GITHUB: ${{ secrets.GITHUB }}
13+
with:
14+
assignees: 'clouddrove-ci'

.github/workflows/changelog.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: changelog
2+
permissions: write-all
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
workflow_dispatch:
8+
jobs:
9+
call-workflow-changelog:
10+
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
11+
secrets:
12+
GITHUB: ${{ secrets.GITHUB }}
13+
with:
14+
branch: 'master'

.github/workflows/readme.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,32 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: 'Checkout'
13-
uses: actions/checkout@v2.3.4
13+
uses: actions/checkout@master
1414

1515
- name: 'Set up Python 3.7'
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: '3.x'
1919

2020
- name: 'create readme'
21-
uses: 'clouddrove/[email protected]'
21+
uses: 'clouddrove/[email protected].2'
2222
with:
2323
actions_subcommand: 'readme'
2424
github_token: '${{ secrets.GITHUB }}'
2525
env:
26-
GITHUB_TOKEN: ${{ secrets.CLOUDDROVE_GITHUB_TOKEN }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727

2828

2929
- name: 'pre-commit check errors'
30-
uses: pre-commit/action@v2.0.0
30+
uses: pre-commit/action@v3.0.0
3131
continue-on-error: true
3232

33-
- name: 'pre-commit fix errors'
34-
uses: pre-commit/action@v2.0.0
33+
- name: 'pre-commit fix erros'
34+
uses: pre-commit/action@v3.0.0
3535
continue-on-error: true
3636

3737
- name: 'push readme'
38-
uses: 'clouddrove/[email protected]'
38+
uses: 'clouddrove/[email protected].2'
3939
continue-on-error: true
4040
with:
4141
actions_subcommand: 'push'

.github/workflows/terraform.yml

-47
This file was deleted.

.github/workflows/terratest.yml

-42
This file was deleted.

.github/workflows/tf-checks.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: tf-checks
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
tf-checks-complete-example:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
10+
with:
11+
working_directory: './_examples/complete/'
12+
tf-checks-basic-example:
13+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
14+
with:
15+
working_directory: './_examples/basic/'

.github/workflows/tflint.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: tf-lint
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
tf-lint:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master
10+
secrets:
11+
GITHUB: ${{ secrets.GITHUB }}

.github/workflows/tfsec.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: tfsec
2+
permissions: write-all
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
jobs:
7+
tfsec:
8+
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master
9+
secrets:
10+
GITHUB: ${{ secrets.GITHUB }}
11+
with:
12+
working_directory: '.'

0 commit comments

Comments
 (0)