personal_area_php/frontend/web/api-doc/.github/workflows/docker-image-check.yml
2024-05-24 15:27:07 +03:00

21 lines
478 B
YAML

name: Security scan for docker image
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'docker.io/swaggerapi/swagger-ui:unstable'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'