Skip to content

Fix TFSec Recommendations #3

Fix TFSec Recommendations

Fix TFSec Recommendations #3

Workflow file for this run

name: Trivy Scan
on:
push:
branches-ignore: [master, main]
pull_request:
branches: [master, main]
jobs:
build:
name: Security Scan
runs-on: ubuntu-20.04
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- 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
# - name: Upload Trivy scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: 'trivy-results.sarif'