Merge pull request #3 from freitasgst/chore/add-pr-template #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |