MatchMakingServices/.github/workflows/security.yaml
john4064 89839198fd
Some checks failed
Security Scan / trivy (push) Failing after 12s
Add .github/workflows/security.yaml
2026-03-26 04:08:34 +00:00

29 lines
No EOL
804 B
YAML

name: Security Scan
on: [push, pull_request]
jobs:
trivy:
runs-on: nas
steps:
- uses: actions/checkout@v4
- name: Run Trivy
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
aquasec/trivy:latest fs \
--exit-code 1 \
--severity HIGH,CRITICAL \
/workspace
- name: Run Semgrep
run: |
docker run --rm \
-v ${{ github.workspace }}:/src \
returntocorp/semgrep semgrep \
--config=auto \
--error /src
- name: Run Gitleaks
run: |
docker run --rm \
-v ${{ github.workspace }}:/repo \
zricethezav/gitleaks:latest detect \
--source /repo \
--exit-code 1