Skip to content

Commit

Permalink
Merge pull request #60 from schubergphilis/update-workflows
Browse files Browse the repository at this point in the history
update workflows
  • Loading branch information
marwinbaumannsbp authored Apr 12, 2024
2 parents ca4c46c + 65edb1c commit 8329658
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
8 changes: 8 additions & 0 deletions sync-root/.github/workflows/terraform-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ jobs:
env:
AWS_DEFAULT_REGION: eu-west-1

- name: Terraform Test
id: test
if: ${{ !vars.SKIP_TERRAFORM_TESTS }}
run: |
terraform init
terraform test
- uses: actions/github-script@v6
if: github.event_name == 'pull_request' || always()
with:
Expand Down Expand Up @@ -153,6 +160,7 @@ jobs:
quiet: true
skip_check: "CKV_GIT_5,CKV_GLB_1,CKV_TF_1"
soft_fail: false
skip_path: "examples/*"

### SKIP REASON ###
# Check | Description | Reason
Expand Down
16 changes: 12 additions & 4 deletions sync-root/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-json
- id: check-merge-conflict
Expand All @@ -18,15 +18,23 @@ repos:
- --allow-missing-credentials
- id: detect-private-key
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.88.0
rev: v1.88.4
hooks:
- id: terraform_fmt
- id: terraform_tflint
- id: terraform_docs
- id: terraform_validate
- repo: https://github.com/bridgecrewio/checkov.git
rev: 3.0.37
rev: 3.2.60
hooks:
- id: checkov
verbose: false
args: [--download-external-modules, "true", --quiet, --compact]
args:
- --download-external-modules
- "true"
- --quiet
- --compact
- --skip-check
- CKV_GIT_5,CKV_GLB_1,CKV_TF_1
- --skip-path
- examples/*

0 comments on commit 8329658

Please sign in to comment.