Skip to content

Commit

Permalink
Merge pull request #2 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 + 94728a8 commit 2d971fd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/tfsec-action.yml

This file was deleted.

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

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

permissions:
contents: read

jobs:
trivy:
name: Run Trivy sarif report
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- name: Clone repo
uses: actions/checkout@v4

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

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

0 comments on commit 2d971fd

Please sign in to comment.