Skip to content

Commit

Permalink
focus on trivy, which presumably does everything tfscan does; also tr…
Browse files Browse the repository at this point in the history
…y security report from sarif
  • Loading branch information
eschultink committed Aug 13, 2024
1 parent 73b7773 commit d8bbcb6
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/trivy-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
- '**'

jobs:
tfsec:
name: tfsec
security-scan:
name: secruity-scan
runs-on: ubuntu-latest

# q: what version of Terraform does this use??
Expand All @@ -18,18 +18,6 @@ jobs:
- name: Clone repo
uses: actions/checkout@v3

# see: https://github.com/aquasecurity/tfsec-action
- name: tfsec
uses: aquasecurity/[email protected]
with:
format: 'sarif'
softfail: true

- name: Upload tfsec scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'tfsec-results.sarif'

# see: https://github.com/aquasecurity/trivy-action
- name: Run Trivy vulnerability scanner in IaC mode
uses: aquasecurity/[email protected]
Expand All @@ -46,3 +34,9 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

- name: Generate Security Report
uses: peter-murray/github-security-report-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d8bbcb6

Please sign in to comment.