Skip to content

Merge pull request #3 from freitasgst/chore/add-pr-template #6

Merge pull request #3 from freitasgst/chore/add-pr-template

Merge pull request #3 from freitasgst/chore/add-pr-template #6

Workflow file for this run

name: Trivy Scan
on:
push:
pull_request:
branches:
- main
jobs:
trivy-fs:
name: Scan filesystem
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Scan filesystem
uses: aquasecurity/[email protected]
with:
scan-type: fs
format: sarif
output: trivy-results.sarif
- name: Upload scan results
uses: github/codeql-action/[email protected]
if: cancelled() == false
with:
sarif_file: trivy-results.sarif
trivy-repo:
name: Scan repository
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Scan repository
uses: aquasecurity/[email protected]
with:
scan-type: repo
format: sarif
output: trivy-results.sarif
- name: Upload scan results
uses: github/codeql-action/[email protected]
if: cancelled() == false
with:
sarif_file: trivy-results.sarif