Skip to content

Commit 08abfee

Browse files
authored
Merge pull request #185 from jiaweitao001/ci
Add CI pipeline
2 parents 484fdb9 + b9864f3 commit 08abfee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2165
-773
lines changed

.checkov_config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
block-list-secret-scan: []
2+
branch: master
3+
directory:
4+
- ./
5+
download-external-modules: false
6+
evaluate-variables: true
7+
external-modules-download-path: .external_modules
8+
framework:
9+
- all
10+
quiet: true
11+
secrets-scan-file-type: []
12+
skip-check:
13+
- CKV_GHA_3
14+
- CKV_AZURE_119
15+
# Check following rules after v4.0
16+
- CKV2_AZURE_18
17+
- CKV2_AZURE_1
18+
- CKV2_AZURE_10
19+
- CKV2_AZURE_12
20+
skip-framework:
21+
- dockerfile
22+
summary-position: top

.github/CODEOWNERS

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
name: Bug Report
2+
description: If something isn't working as expected.
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for taking the time to fill out a bug report.
9+
10+
If you are not running the latest version of this module, please try to reproduce your bug with the latest version before opening an issue.
11+
- type: checkboxes
12+
attributes:
13+
label: Is there an existing issue for this?
14+
description: Please search to see if an issue already exists for the bug you encountered.
15+
options:
16+
- label: I have searched the existing issues
17+
required: true
18+
- type: dropdown
19+
attributes:
20+
label: Greenfield/Brownfield provisioning
21+
description: Do you reproduce the bug with a new infrastructure provisioning (greenfield) or you need an existing infrastructure with an existing terraform state (brownfield) to reproduce the bug ?
22+
multiple: false
23+
options:
24+
- greenfield
25+
- brownfield
26+
validations:
27+
required: true
28+
- type: input
29+
id: terraform
30+
attributes:
31+
label: Terraform Version
32+
description: Which Terraform version are you using?
33+
placeholder: Example value, 1.2.8
34+
validations:
35+
required: true
36+
- type: input
37+
id: module
38+
attributes:
39+
label: Module Version
40+
description: Which module version are you using?
41+
placeholder: Example value, 6.0.0
42+
validations:
43+
required: true
44+
- type: input
45+
id: azurerm
46+
attributes:
47+
label: AzureRM Provider Version
48+
description: Which AzureRM Provider version are you using?
49+
placeholder: Example value, 3.21.1
50+
validations:
51+
required: true
52+
- type: input
53+
id: resource
54+
attributes:
55+
label: Affected Resource(s)/Data Source(s)
56+
description: Please list the affected resources and/or data sources.
57+
placeholder: azurerm_XXXXX
58+
validations:
59+
required: true
60+
- type: textarea
61+
id: config
62+
attributes:
63+
label: Terraform Configuration Files
64+
description: |
65+
Please provide a minimal Terraform configuration that can reproduce the issue.
66+
render: hcl
67+
validations:
68+
required: true
69+
- type: textarea
70+
id: tfvars
71+
attributes:
72+
label: tfvars variables values
73+
description: |
74+
Please provide the necessary tfvars variables values to reproduce the issue. Do not share secrets or sensitive information.
75+
render: hcl
76+
validations:
77+
required: true
78+
- type: textarea
79+
id: debug
80+
attributes:
81+
label: Debug Output/Panic Output
82+
description: |
83+
For long debug logs please provide a link to a GitHub Gist containing the complete debug output. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
84+
85+
To obtain the debug output, see the [Terraform documentation on debugging](https://www.terraform.io/docs/internals/debugging.html).
86+
render: shell
87+
validations:
88+
required: true
89+
- type: textarea
90+
id: expected
91+
attributes:
92+
label: Expected Behaviour
93+
description: What should have happened?
94+
- type: textarea
95+
id: actual
96+
attributes:
97+
label: Actual Behaviour
98+
description: What actually happened?
99+
- type: textarea
100+
id: reproduce
101+
attributes:
102+
label: Steps to Reproduce
103+
description: |
104+
Please list the steps required to reproduce the issue, e.g.
105+
106+
1. `terraform apply`
107+
- type: input
108+
id: facts
109+
attributes:
110+
label: Important Factoids
111+
description: |
112+
Are there anything atypical about your accounts that we should know? For example: Running in a Azure China/Germany/Government?
113+
- type: textarea
114+
id: references
115+
attributes:
116+
label: References
117+
description: |
118+
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
119+
120+
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Such as vendor documentation?
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Feature Request
2+
description: I have a suggestion (and might want to implement myself)!
3+
title: "Support for [thing]"
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Is there an existing issue for this?
8+
description: Please search to see if an issue already exists for the feature you are requesting.
9+
options:
10+
- label: I have searched the existing issues
11+
required: true
12+
- type: textarea
13+
id: description
14+
attributes:
15+
label: Description
16+
description: Please leave a helpful description of the feature request here.
17+
validations:
18+
required: true
19+
- type: input
20+
id: resource
21+
attributes:
22+
label: New or Affected Resource(s)/Data Source(s)
23+
description: Please list the new or affected resources and/or data sources.
24+
placeholder: azurerm_XXXXX
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: config
29+
attributes:
30+
label: Potential Terraform Configuration
31+
description: Please provide an example of what the enhancement could look like on this Terraform module.
32+
render: hcl
33+
- type: textarea
34+
id: references
35+
attributes:
36+
label: References
37+
description: |
38+
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
39+
40+
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation? For example:
41+
42+
* https://azure.microsoft.com/en-us/roadmap/virtual-network-service-endpoint-for-azure-cosmos-db/

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/feature_request.md

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

.github/autoAssignees.yml

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

.github/labeler.yml

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

.github/pull_request_template.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
<!---
2-
Please add this into the test of test/fixture, format the changes by "terraform fmt", and test it by run the following:
3-
```sh
4-
$ docker build --build-arg BUILD_ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID --build-arg BUILD_ARM_CLIENT_ID=$ARM_CLIENT_ID --build-arg BUILD_ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET --build-arg BUILD_ARM_TENANT_ID=$ARM_TENANT_ID -t azure-compute .
5-
$ docker run --rm azure-compute /bin/bash -c "bundle install && rake full"
6-
```
1+
## Describe your changes
72

8-
Please add this into the example usage of README.md and format the changes by "terrafmt fmt README.md". Please intall "terrafmt" by [install terrafmt](https://github.com/katbyte/terrafmt#install).
9-
--->
3+
## Issue number
104

11-
Fixes #000
12-
13-
Changes proposed in the pull request:
5+
#000
146

7+
## Checklist before requesting a review
8+
- [ ] The pr title can be used to describe what this pr did in `CHANGELOG.md` file
9+
- [ ] I have executed pre-commit on my machine
10+
- [ ] I have passed pr-check on my machine
1511

12+
Thanks for your cooperation!
1613

0 commit comments

Comments
 (0)