Skip to content

Docker Security Scan (Trivy GHCR) #137

Docker Security Scan (Trivy GHCR)

Docker Security Scan (Trivy GHCR) #137

name: Docker Security Scan (Trivy GHCR)
on:
workflow_run:
workflows: ["isOdoo"]
types: [completed]
branches: [master]
permissions:
contents: read
packages: read
security-events: write
jobs:
scan:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
version: ["6.0", "6.1", "7.0", "8.0", "9.0", "10.0", "11.0", "12.0", "13.0", "14.0", "15.0", "16.0", "17.0", "18.0", "19.0"]
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Run Trivy
uses: aquasecurity/trivy-action@master
with:
image-ref: ghcr.io/grupoisonor/isodoo:${{ matrix.version }}
format: sarif
output: trivy-${{ matrix.version }}.sarif
severity: HIGH,CRITICAL
exit-code: '1'
ignore-unfixed: true
vuln-type: os,library
scanners: vuln
- name: Upload SARIF to Security tab
if: always()
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: trivy-${{ matrix.version }}.sarif