Image Vulnerabilities Scan #35
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: Image Vulnerabilities Scan | |
on: | |
schedule: | |
- cron: "0 12 * * 1" | |
workflow_dispatch: | |
jobs: | |
scan: | |
name: Check image vulnerabilities | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Build Docker image | |
env: | |
IMG: "msi-acrpull:${{ github.sha }}" | |
run: make docker-build | |
- name: Run vulnerability scanner | |
uses: aquasecurity/trivy-action@master | |
with: | |
trivy-config: "trivy.yaml" | |
image-ref: "msi-acrpull:${{ github.sha }}" | |
format: "table" |