Skip to content

Commit bbe9a68

Browse files
committed
new workflows
1 parent ff4fe56 commit bbe9a68

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/checkov.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on: [push]
2+
jobs:
3+
checkov-job:
4+
runs-on: ubuntu-latest
5+
name: checkov-action
6+
steps:
7+
- name: Checkout repo
8+
uses: actions/checkout@master
9+
10+
- name: Run Checkov action
11+
id: checkov
12+
uses: bridgecrewio/checkov-action@master
13+
with:
14+
directory: demos/
15+
file: #example/tfplan.json # optional: provide the path for resource to be scanned. This will override the directory if both are provided.
16+
check: #CKV_AWS_1 # optional: run only a specific check_id. can be comma separated list
17+
skip_check: #CKV_AWS_2 # optional: skip a specific check_id. can be comma separated list
18+
quiet: true # optional: display only failed checks
19+
soft_fail: false # optional: do not return an error code if there are failed checks
20+
framework: terraform # optional: run only on a specific infrastructure {cloudformation,terraform,kubernetes,all}
21+
output_format: junitxml # optional: the output format, one of: cli, json, junitxml, github_failed_only, or sarif. Default: sarif
22+
#output_file_path: reports/results.sarif # folder and name of results file
23+
download_external_modules: true # optional: download external terraform modules from public git repositories and terraform registry
24+
#var_file: ./testdir/gocd.yaml # optional: variable files to load in addition to the default files. Currently only supported for source Terraform and Helm chart scans.
25+
#log_level: DEBUG # optional: set log level. Default WARNING
26+
#config_file: path/this_file
27+
#baseline: cloudformation/.checkov.baseline # optional: Path to a generated baseline file. Will only report results not in the baseline.
28+
container_user: 1000 # optional: Define what UID and / or what GID to run the container under to prevent permission issues

.github/workflows/terrascan.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on: [push]
2+
3+
jobs:
4+
terrascan_job:
5+
runs-on: ubuntu-latest
6+
name: terrascan-action
7+
steps:
8+
- name: Checkout repository
9+
uses: actions/checkout@v2
10+
- name: Run Terrascan
11+
id: terrascan
12+
uses: tenable/terrascan-action@main
13+
with:
14+
iac_type: 'terraform'
15+
iac_version: 'v14'
16+
policy_type: 'azure'
17+
only_warn: true
18+
#scm_token: ${{ secrets.ACCESS_TOKEN }}
19+
#verbose: true
20+
#sarif_upload: true
21+
#non_recursive:
22+
iac_dir: demos
23+
#policy_path:
24+
#skip_rules:
25+
#config_path:
26+
#find_vulnerabilities:
27+
#webhook_url:
28+
#webhook_token:

0 commit comments

Comments
 (0)