Skip to content

change job names; update to current ubuntu #2

change job names; update to current ubuntu

change job names; update to current ubuntu #2

Workflow file for this run

name: Trivy Scan
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "main" ]
jobs:
terraform:
name: Terraform
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in IaC mode
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'config'
hide-progress: true
format: 'sarif'
output: 'trivy-results.sarif'
exit-code: '1'
severity: 'CRITICAL,HIGH,MEDIUM'
- name: Upload Trivy scan results to GitHub Security tab
if: github.ref == 'refs/heads/scanning'
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
category: Terraform