Skip to content

Commit

Permalink
Merge branch 'main' into feature/gha
Browse files Browse the repository at this point in the history
  • Loading branch information
zMynxx committed Aug 18, 2023
2 parents 28a35c2 + a902b70 commit 68b0a46
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/terrascan/terrascanner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Terrascan scan
on:
push:
pull_request:

jobs:
terrascan_job:
runs-on: ubuntu-22.04
name: terrascan-action
steps:
- uses: actions/checkout@v3
- name: Terrascan IaC scanner
id: terrascan
uses: tenable/terrascan-action@v1.4.1
with:
iac_type: "terraform"
iac_version: "v14"
policy_type: "aws"
only_warn: true
sarif_upload: true
# webhook_url: ${{ secrets.SLACK_WEBHOOK_PROD }}
find_vulnerabilities: true
#non_recursive:
#iac_dir:
#policy_path:
#skip_rules:
#config_path:
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: terrascan.sarif

0 comments on commit 68b0a46

Please sign in to comment.