Skip to content

Scan CVEs dispatch

Scan CVEs dispatch #21

Workflow file for this run

name: Scan CVEs dispatch
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
jobs:
read-config:
runs-on: ubuntu-latest
outputs:
ghcr-scanning: ${{ steps.read-ci-config.outputs.ghcr-cve-scan }}
build-matrix: ${{ steps.read-ci-config.outputs.build-matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Read .github/ci.yaml
id: read-ci-config
uses: canonical/rocks-template-actions/actions/read-ci-config@v1
run-scan:
name: Run scan for released images
needs: [read-config]
uses: canonical/oci-factory/.github/workflows/Vulnerability-Scan.yaml@main
strategy:
matrix: ${{ fromJson(needs.read-config.outputs.build-matrix) }}
with:
oci-image-name: ghcr.io/${{ github.repository }}/${{ matrix.name }}:${{ matrix.tag }}
create-issue: true
trivyignore-path: ${{ matrix.directory }}/.trivyignore
permissions:
contents: read
packages: read