Vulnerability Scan #1935
This file contains hidden or 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
# GitHub Actions docs | |
# https://help.github.com/en/articles/about-github-actions | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
name: Vulnerability Scan | |
on: | |
schedule: | |
# Run every day at 12:00 UTC | |
- cron: '0 12 * * *' | |
workflow_dispatch: | |
jobs: | |
scan: | |
name: Scan docker image with Trivy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag symfony-flex-backend:master | |
- name: Scan image with Trivy | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: symfony-flex-backend:master | |
ignore-unfixed: 'true' | |
exit-code: '1' | |
vuln-type: 'os,library' | |
severity: 'CRITICAL,HIGH' |