-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from bschaatsbergen/f/add-ci-job
replace precommit with a CI job
- Loading branch information
Showing
5 changed files
with
45 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: ci | ||
on: | ||
- pull_request | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Setup dependencies | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
# Run a couple of native Terraform checks | ||
- uses: hashicorp/setup-terraform@v3 | ||
- run: terraform init | ||
- run: terraform fmt -recursive -check | ||
- run: terraform validate | ||
|
||
# Checkov | ||
- uses: bridgecrewio/checkov-action@v12 | ||
with: | ||
directory: . | ||
quiet: true | ||
skip_check: CKV_TF_1,CKV_GCP_32,CKV_GCP_34,CKV2_GCP_18 | ||
framework: terraform | ||
|
||
# Terraform-docs | ||
- uses: terraform-docs/[email protected] | ||
with: | ||
working-dir: . | ||
output-file: README.md | ||
output-method: inject | ||
fail-on-diff: true | ||
args: --lockfile=false | ||
git-push: "true" # automatically push the changes to the branch | ||
|
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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