Skip to content

Commit

Permalink
Merge pull request #4 from cullancarey/add_actions
Browse files Browse the repository at this point in the history
Add actions
  • Loading branch information
cullancarey authored Oct 19, 2022
2 parents 089ed5f + efbe4e6 commit 138692b
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
skip-check:
- CKV_AWS_145
- CKV_AWS_50
- CKV_AWS_115
- CKV_AWS_116
- CKV_AWS_117
- CKV_AWS_68
- CKV_AWS_86
- CKV_AWS_76
- CKV_AWS_272
- CKV_AWS_18
- CKV_AWS_19
- CKV2_AWS_32
- CKV_AWS_173
52 changes: 52 additions & 0 deletions .github/workflows/terraform_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Terraform Checks'

on: [push]

jobs:
terraform:
name: 'Terraform'
runs-on: ubuntu-latest

# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash

steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2

# Install the latest version of Terraform CLI
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1

# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
id: init
run: terraform init
continue-on-error: false

# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
id: fmt
run: terraform fmt -check
continue-on-error: false

- name: Terraform Validate
id: validate
run: terraform validate -no-color
continue-on-error: false


checkov:
needs: Terraform
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test with Checkov
id: checkov
uses: bridgecrewio/checkov-action@master
with:
framework: terraform
config_file: .checkov.yaml
3 changes: 3 additions & 0 deletions acm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ resource "aws_acm_certificate" "certificate" {
tags = {
Name = "website-certificate"
}
lifecycle {
create_before_destroy = true
}

}

Expand Down

0 comments on commit 138692b

Please sign in to comment.