Skip to content

Commit ae8e7aa

Browse files
committed
feat: added github action files and endpoint policy
1 parent 4c13a64 commit ae8e7aa

File tree

17 files changed

+226
-206
lines changed

17 files changed

+226
-206
lines changed

.editorconfig

Lines changed: 30 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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+
* @anmolnagpal @clouddrove/approvers @clouddrove-ci

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
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

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55

66
version: 2
77
updates:
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"
13+
open-pull-requests-limit: 3
14+
assignees:
15+
- "clouddrove-ci"
16+
reviewers:
17+
- "approvers"
18+
819
- package-ecosystem: "terraform" # See documentation for possible values
920
directory: "/" # Location of package manifests
1021
schedule:
@@ -15,8 +26,24 @@ updates:
1526
# Add reviewer
1627
reviewers:
1728
- "approvers"
29+
# Allow up to 3 open pull requests for pip dependencies
30+
open-pull-requests-limit: 3
31+
32+
- package-ecosystem: "terraform" # See documentation for possible values
33+
directory: "/_example/private-subnet" # Location of package manifests
34+
schedule:
35+
interval: "weekly"
36+
# Add assignees
37+
assignees:
38+
- "clouddrove-ci"
39+
# Add reviewer
40+
reviewers:
41+
- "approvers"
42+
# Allow up to 3 open pull requests for pip dependencies
43+
open-pull-requests-limit: 3
44+
1845
- package-ecosystem: "terraform" # See documentation for possible values
19-
directory: "_example/private-subnet" # Location of package manifests
46+
directory: "/_example/public-private-subnet-endpoint" # Location of package manifests
2047
schedule:
2148
interval: "weekly"
2249
# Add assignees
@@ -25,8 +52,11 @@ updates:
2552
# Add reviewer
2653
reviewers:
2754
- "approvers"
55+
# Allow up to 3 open pull requests for pip dependencies
56+
open-pull-requests-limit: 3
57+
2858
- package-ecosystem: "terraform" # See documentation for possible values
29-
directory: "_example/public-private-subnet" # Location of package manifests
59+
directory: "/_example/public-private-subnet-single-nat-gateway" # Location of package manifests
3060
schedule:
3161
interval: "weekly"
3262
# Add assignees
@@ -35,18 +65,24 @@ updates:
3565
# Add reviewer
3666
reviewers:
3767
- "approvers"
68+
# Allow up to 3 open pull requests for pip dependencies
69+
open-pull-requests-limit: 3
70+
3871
- package-ecosystem: "terraform" # See documentation for possible values
39-
directory: "_example/public-private-subnet-single-nat-gateway" # Location of package manifests
72+
directory: "/_example/public-private-subnet" # Location of package manifests
4073
schedule:
41-
interval: "weekly"
74+
interval: "weekly"
4275
# Add assignees
4376
assignees:
4477
- "clouddrove-ci"
4578
# Add reviewer
4679
reviewers:
4780
- "approvers"
81+
# Allow up to 3 open pull requests for pip dependencies
82+
open-pull-requests-limit: 3
83+
4884
- package-ecosystem: "terraform" # See documentation for possible values
49-
directory: "_example/public-subnet" # Location of package manifests
85+
directory: "/_example/public-subnet" # Location of package manifests
5086
schedule:
5187
interval: "weekly"
5288
# Add assignees
@@ -55,3 +91,5 @@ updates:
5591
# Add reviewer
5692
reviewers:
5793
- "approvers"
94+
# Allow up to 3 open pull requests for pip dependencies
95+
open-pull-requests-limit: 3
Lines changed: 14 additions & 0 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- "*"
77
workflow_dispatch:
88
jobs:
9-
changelog:
9+
call-workflow-changelog:
1010
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
1111
secrets: inherit
1212
with:
13-
branch: 'master'
13+
branch: 'master'

.github/workflows/readme.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: 'Checkout'
1313
uses: actions/checkout@master
1414

15-
- name: Set up Python 3.7.
15+
- name: 'Set up Python 3.7'
1616
uses: actions/setup-python@v2
1717
with:
1818
python-version: '3.x'
@@ -21,16 +21,16 @@ jobs:
2121
uses: 'clouddrove/github-actions@v9.0.2'
2222
with:
2323
actions_subcommand: 'readme'
24-
github_token: '${{ secrets.GITHUB}}'
24+
github_token: '${{ secrets.GITHUB }}'
2525
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727

2828

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

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

.github/workflows/terraform.yml

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

.github/workflows/terratest.yml

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

.github/workflows/tf-checks.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: tf-checks
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
tf-checks-private-subnet-example:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
10+
with:
11+
working_directory: './_examples/private-subnet/'
12+
tf-checks-basic-example:
13+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
14+
with:
15+
working_directory: './_examples/public-private-subnet-endpoint/'
16+
tf-checks-public-private-subnet-single-nat-gateway-example:
17+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
18+
with:
19+
working_directory: './_examples/public-private-subnet-single-nat-gateway/'
20+
tf-checks-public-private-subnet-example:
21+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
22+
with:
23+
working_directory: './_examples/public-private-subnet/'
24+
tf-checks-public-subnet-example:
25+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
26+
with:
27+
working_directory: './_examples/public-subnet/'

0 commit comments

Comments
 (0)