Skip to content

Commit

Permalink
Merge pull request #3 from octodemo/update-trivy
Browse files Browse the repository at this point in the history
workflows: convert tfsec to trivy
  • Loading branch information
ldennington authored Feb 15, 2024
2 parents 94173c5 + 5a9c755 commit 1cd0410
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/tfsec-action.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/trivy-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Trivy

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
trivy:
name: Run Trivy sarif report
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner in IaC mode
uses: aquasecurity/trivy-action@master
with:
scan-type: "config"
hide-progress: false
format: "sarif"
output: "trivy-results.sarif"
ignore-unfixed: true
severity: "CRITICAL,HIGH"

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: trivy-results.sarif

0 comments on commit 1cd0410

Please sign in to comment.