-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
10 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
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ jobs: | |
- uses: gaurav-nelson/[email protected] | ||
with: | ||
use-quiet-mode: "yes" # errors only. | ||
config-file: ".github/workflows/markdownlint-config.json" | ||
config-file: "templates/base/.github/workflows/markdownlint-config.json" |
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 |
---|---|---|
|
@@ -5,14 +5,16 @@ on: | |
branches: | ||
- main | ||
paths: | ||
- bin/** | ||
- infra/** | ||
- .github/workflows/** | ||
- templates/*/.github/workflows/** | ||
- templates/*/bin/** | ||
- templates/*/infra/** | ||
pull_request: | ||
paths: | ||
- bin/** | ||
- infra/** | ||
- .github/workflows/** | ||
- templates/*/.github/workflows/** | ||
- templates/*/bin/** | ||
- templates/*/infra/** | ||
|
||
jobs: | ||
lint-github-actions: | ||
|
@@ -35,7 +37,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Shellcheck | ||
run: make infra-lint-scripts | ||
run: make -f template-only.mak infra-lint-scripts | ||
check-terraform-format: | ||
name: Check Terraform format | ||
runs-on: ubuntu-latest | ||
|
@@ -45,15 +47,15 @@ jobs: | |
- name: Run infra-lint-terraform | ||
run: | | ||
echo "If this fails, run 'make infra-format'" | ||
make infra-lint-terraform | ||
make -f template-only.mak infra-lint-terraform | ||
validate-terraform: | ||
name: Validate Terraform modules | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup-terraform | ||
- name: Validate | ||
run: make infra-validate-modules | ||
run: make -f template-only.mak infra-validate-modules | ||
check-compliance-with-checkov: | ||
name: Check compliance with checkov | ||
runs-on: ubuntu-latest | ||
|
@@ -70,7 +72,8 @@ jobs: | |
# In this case, checkov-action v12.2296.0 is mapped to checkov v2.3.194. | ||
uses: bridgecrewio/[email protected] | ||
with: | ||
directory: infra | ||
# TODO: need to run different steps for templates/*/infra? | ||
# directory: infra | ||
framework: terraform | ||
quiet: true # only displays failed checks | ||
check-compliance-with-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