Skip to content

Security scan for docker image and dependencies #11

Security scan for docker image and dependencies

Security scan for docker image and dependencies #11

Workflow file for this run

name: Security scan for docker image and dependencies
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * *'
permissions:
contents: read
jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Log in to DockerHub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f
with:
username: ${{ secrets.DOCKERHUB_SB_USERNAME }}
password: ${{ secrets.DOCKERHUB_SB_PASSWORD }}
- name: Run Trivy vulnerability scanner on docker image
uses: aquasecurity/trivy-action@d2a0b60797ff03db6132bd4e2b293f9b37081297
with:
image-ref: 'swaggerapi/swagger-ui:unstable'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
- name: Run Trivy vulnerability scanner on dependencies
uses: aquasecurity/trivy-action@d2a0b60797ff03db6132bd4e2b293f9b37081297
with:
scan-type: 'fs'
scan-ref: '.'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'library'
severity: 'CRITICAL,HIGH,MEDIUM'