generated from rhythmictech/terraform-terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update license * update ci * relax versions
- Loading branch information
Showing
13 changed files
with
156 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name: pre-commit-check | ||
on: | ||
push: | ||
branches: -- main | ||
branches: | ||
- master | ||
- prod | ||
- develop | ||
|
@@ -19,7 +19,7 @@ jobs: | |
- name: initialize Terraform | ||
run: terraform init --backend=false | ||
- name: pre-commit | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].3 | ||
env: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
# many of these are covered by better reviewdog linters below | ||
|
@@ -28,12 +28,3 @@ jobs: | |
no-commit-to-branch, | ||
terraform_tflint_nocreds, | ||
terraform_tfsec | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: ${{ failure() }} | ||
with: | ||
commit_message: Apply automatic changes | ||
commit_options: "--no-verify" | ||
# Optional commit user and author settings | ||
commit_user_name: Linter Bot | ||
commit_user_email: [email protected] | ||
commit_author: Linter Bot <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
# TODO: #22 add job using https://github.com/reviewdog/action-alex | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -15,7 +16,7 @@ jobs: | |
- name: initialize Terraform | ||
run: terraform init --backend=false | ||
- name: pre-commit | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].3 | ||
env: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
# many of these are covered by better reviewdog linters below | ||
|
@@ -24,23 +25,12 @@ jobs: | |
no-commit-to-branch, | ||
terraform_tflint_nocreds, | ||
terraform_tfsec | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: ${{ failure() }} | ||
with: | ||
commit_message: Apply automatic changes | ||
commit_options: "--no-verify" | ||
# Optional commit user and author settings | ||
commit_user_name: Linter Bot | ||
commit_user_email: [email protected] | ||
commit_author: Linter Bot <[email protected]> | ||
tflint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: 0.12.26 | ||
- name: Install prerequisites | ||
run: ./bin/install-ubuntu.sh | ||
- name: Terraform init | ||
run: terraform init --backend=false | ||
- name: tflint | ||
|
@@ -55,10 +45,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: 0.12.26 | ||
- name: Install prerequisites | ||
run: ./bin/install-ubuntu.sh | ||
- name: Terraform init | ||
run: terraform init --backend=false | ||
- name: tfsec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.