Trivy IaC Scanner
Trivy IaC Scanner - Reusable Workflow
THIN WRAPPER: This workflow delegates to the scanner-trivy-iac composite action. All scanning logic is in: .github/actions/scanner-trivy-iac/action.yml
For GHES users: Use the composite action directly instead of this workflow. See: examples/github-enterprise/infrastructure-scanning.yml
uses: huntridge-labs/argus/.github/workflows/scanner-trivy-iac.yml@0.6.7
Triggers
- Manual dispatch
- Reusable (called by other workflows)
Permissions
| Scope | Access |
|---|---|
contents |
read |
security-events |
write |
actions |
read |
pull-requests |
write |
Inputs
| Input | Description | Required | Default |
|---|---|---|---|
iac_path |
Relative path to the infrastructure-as-code directory to scan string | No | infrastructure |
enable_code_security |
Whether GitHub Code Security is enabled for this repository boolean | No | False |
post_pr_comment |
Whether to post PR comments boolean | No | False |
fail_on_severity |
Fail the job if vulnerabilities at or above this severity are found. Options: none, low, medium, high, critical. Set ... string | No | none |
Jobs
trivy-iac-scan โ Trivy IaC Security Scan
Runs on: ubuntu-latest ยท Timeout: 15 minutes ยท Continue on error: Yes
Steps:
- Checkout repository โ
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - Run Trivy IaC Scanner โ
huntridge-labs/argus/.github/actions/scanner-trivy-iac@0.6.7
Actions used:
- ๐๏ธ
scanner-trivy-iacโ Trivy IaC Scanner
All Composite Actions Referenced
- ๐๏ธ
scanner-trivy-iacโ Trivy IaC Scanner