Skip to content

Fix comprehensive CI/CD pipeline issues and repository cleanup #18

Fix comprehensive CI/CD pipeline issues and repository cleanup

Fix comprehensive CI/CD pipeline issues and repository cleanup #18

Workflow file for this run

name: 'Docker Image Scan'
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: read
jobs:
build-and-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build an image from Dockerfile
id: build-image
run: |
docker build -t ${{ github.repository }}:latest .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: '${{ github.repository }}:latest'
format: 'table'
exit-code: '0'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'