Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sumo 238066 add GitHub action for awso #177

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/tf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@ on: [workflow_dispatch, pull_request]
jobs:
ValidateTF:
runs-on: ubuntu-latest
name: "Validate Terraform module"
name: "Validate Terraform module for AWSO"
steps:
- name: Checkout
uses: actions/checkout@v3

- name: terraform validate
uses: dflook/terraform-validate@v1
with:
directory: aws-observability-terraform/
path: aws-observability-terraform/

ValidateLinting:
runs-on: ubuntu-latest
name: "Terraform template linting verification"

name: "Terraform template linting verification for AWSO"

steps:
- uses: actions/checkout@v4
name: Checkout source code

- name: Change directory
run: cd aws-observability-terraform/

- uses: actions/cache@v4
name: Cache plugin dir
with:
Expand All @@ -43,10 +45,10 @@ jobs:
GITHUB_TOKEN: ''

- name: Run TFLint
run: tflint -f compact
run: tflint --recursive -f checkstyle

TFSecurityChecks:
name: "terraform template tests using checkov"
name: "terraform template tests using checkov for AWSO"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repo
Expand All @@ -60,4 +62,4 @@ jobs:
output_format: cli
output_bc_ids: false
download_external_modules: true
skip_check: CKV_AWS_26,CKV_AWS_35,CKV_AWS_67,CKV_AWS_36,CKV_AWS_252,CKV_AWS_158,CKV_AWS_338,CKV_AWS_117,CKV_AWS_115,CKV_AWS_173,CKV_AWS_50,CKV_AWS_241,CKV_AWS_240,CKV2_AWS_6,CKV2_AWS_62,CKV_AWS_144,CKV_AWS_18,CKV_AWS_21,CKV_AWS_145,CKV_TF_1,CKV_AWS_27,CKV_AWS_124,CKV2_AWS_10,CKV_AWS_272,CKV2_AWS_61
skip_check: CKV_AWS_26,CKV_AWS_35,CKV_AWS_67,CKV_AWS_36,CKV_AWS_252,CKV_AWS_158,CKV_AWS_338,CKV_AWS_117,CKV_AWS_115,CKV_AWS_173,CKV_AWS_50,CKV_AWS_241,CKV_AWS_240,CKV2_AWS_6,CKV2_AWS_62,CKV_AWS_144,CKV_AWS_18,CKV_AWS_21,CKV_AWS_145,CKV_TF_1,CKV_AWS_27,CKV_AWS_124,CKV2_AWS_10,CKV_AWS_272,CKV2_AWS_61
10 changes: 10 additions & 0 deletions aws-observability-terraform/.tflint.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugin "aws" {
enabled = true
version = "0.30.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}

plugin "terraform" {
enabled = true
preset = "recommended"
}
Loading