Vulnerability 🐞 scan 🔍 container #20
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: "Vulnerability 🐞 scan 🔍 container" | |
on: | |
schedule: | |
- cron: "0 10 * * 2" | |
workflow_dispatch: | |
jobs: | |
vulnerability-scan: | |
name: "Build and scan" | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: build local container | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./Containerfile | |
tags: localbuild/testimage:latest | |
push: false | |
load: true | |
- name: Scan image | |
uses: anchore/scan-action@v5 | |
with: | |
image: "localbuild/testimage:latest" | |
output-format: table | |
- name: Inspect action report | |
run: cat ${{ steps.scan.outputs.table }} |