Skip to content

Commit f45a2c1

Browse files
committed
updated workflows
1 parent a63803a commit f45a2c1

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

.github/workflows/checkov.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: checkov
12
on: [push]
23
jobs:
34
checkov-job:
@@ -11,18 +12,23 @@ jobs:
1112
id: checkov
1213
uses: bridgecrewio/checkov-action@master
1314
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
15+
#directory: example/
16+
#file: example/tfplan.json # optional: provide the path for resource to be scanned. This will override the directory if both are provided.
17+
#check: CKV_AWS_1 # optional: run only a specific check_id. can be comma separated list
18+
#skip_check: CKV_AWS_2 # optional: skip a specific check_id. can be comma separated list
1819
quiet: true # optional: display only failed checks
19-
soft_fail: false # optional: do not return an error code if there are failed checks
20+
soft_fail: true # optional: do not return an error code if there are failed checks
2021
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
22+
output_format: junitxml #sarif # optional: the output format, one of: cli, json, junitxml, github_failed_only, or sarif. Default: sarif
23+
output_file_path: reports/ # folder and name of results file
2324
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.
25+
#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.
26+
#log_level: DEBUG # optional: set log level. Default WARNING
27+
#config_file: path/this_file
28+
#baseline: cloudformation/.checkov.baseline # optional: Path to a generated baseline file. Will only report results not in the baseline.
2829
container_user: 1000 # optional: Define what UID and / or what GID to run the container under to prevent permission issues
30+
- name: Publish Test Results
31+
uses: EnricoMi/publish-unit-test-result-action@v2
32+
if: always()
33+
with:
34+
junit_files: "reports/**/*.xml"

.github/workflows/terrascan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
uses: tenable/terrascan-action@main
1313
with:
1414
iac_type: 'terraform'
15-
iac_version: 'v14'
15+
#iac_version: 'v14'
1616
policy_type: 'azure'
1717
only_warn: true
1818
#scm_token: ${{ secrets.ACCESS_TOKEN }}
1919
#verbose: true
2020
#sarif_upload: true
2121
#non_recursive:
22-
iac_dir: demos
22+
#iac_dir: demos
2323
#policy_path:
2424
#skip_rules:
2525
#config_path:

.github/workflows/tfsec.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ jobs:
1515
- name: tfsec
1616
uses: aquasecurity/[email protected]
1717
with:
18-
additional_args: --force-all-dirs
18+
format: junit
19+
additional_args: -O results.xml
20+
- name: Publish Test Results
21+
uses: EnricoMi/publish-unit-test-result-action@v2
22+
if: always()
23+
with:
24+
junit_files: "results.xml"

0 commit comments

Comments
 (0)