Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Add terragrunt into resource list. (#71)
Browse files Browse the repository at this point in the history
This PR updates the makefile RESOURCES to include terragrunt. The
checkov target is renamed to lint and empty targets added as needed.
  • Loading branch information
dan sinclair committed Aug 27, 2021
1 parent 0cbeb1e commit 6a81cb7
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- scanners/axe-core/**
- scanners/owasp-zap/**

env:
TERRAGRUNT_VERSION: v0.31.1

jobs:

tests:
Expand Down Expand Up @@ -40,6 +43,13 @@ jobs:
with:
node-version: "14"

- name: Setup Terragrunt
run: |
mkdir -p bin
wget -O bin/terragrunt https://github.com/gruntwork-io/terragrunt/releases/download/$TERRAGRUNT_VERSION/terragrunt_linux_amd64
chmod +x bin/*
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
- name: Install dev dependencies
working-directory: ${{ matrix.folder }}
run: make install-dev
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
RESOURCES = \
terragrunt \
api \
scanners/axe-core \
scanners/owasp-zap \
Expand Down
20 changes: 20 additions & 0 deletions terragrunt/.checkov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
skip-check:
- CKV_AWS_18
- CKV_AWS_21
- CKV_AWS_50
- CKV_AWS_59
- CKV_AWS_73
- CKV_AWS_76
- CKV_AWS_108
- CKV_AWS_109
- CKV_AWS_111
- CKV_AWS_115
- CKV_AWS_116
- CKV_AWS_117
- CKV_AWS_120
- CKV_AWS_136
- CKV_AWS_144
- CKV_AWS_145
- CKV2_AWS_4
- CKV2_AWS_5
- CKV2_AWS_29
31 changes: 18 additions & 13 deletions terragrunt/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
.PHONY: fmt checkov install lint test fmt-ci lint-ci build install-dev
fmt:
terraform fmt -recursive aws &&\
terragrunt hclfmt
.PHONY: build test fmt lint install-dev install fmt-ci lint-ci

checkov:
checkov --directory=aws
build:

test:

build: ;
fmt-ci: fmt

install: ;
fmt:
terraform fmt -recursive aws && \
terragrunt hclfmt

install-dev: ;
build:

lint: ;
install:

lint-ci: ;
install-dev:
pip3 install --upgrade requests setuptools && \
pip3 install --upgrade botocore checkov

test: ;
lint-ci: lint

lint:
checkov --directory=aws

fmt-ci: ;
test:

0 comments on commit 6a81cb7

Please sign in to comment.