Skip to content

Merge pull request #1005 from Xaxxoo/feature/trade-dlq-handler-999 #8

Merge pull request #1005 from Xaxxoo/feature/trade-dlq-handler-999

Merge pull request #1005 from Xaxxoo/feature/trade-dlq-handler-999 #8

Workflow file for this run

name: Docker Security Scan
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# Docker repository names must be lowercase; GitHub repository names may not be.
IMAGE_REF: stellarswipe-backends:scan
jobs:
scan:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- name: Build image for scanning
run: docker build -t "${IMAGE_REF}" .
- name: Run Trivy vulnerability scan
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.IMAGE_REF }}
format: sarif
output: trivy-results.sarif
severity: CRITICAL,HIGH
exit-code: '1'
ignore-unfixed: true
- name: Upload Trivy results to GitHub Security
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: trivy-results.sarif