Add .github/workflows/security.yaml
Some checks failed
Security Scan / trivy (push) Failing after 12s

This commit is contained in:
John Parkhurst 2026-03-26 04:08:34 +00:00
parent 726fb4381b
commit 89839198fd

29
.github/workflows/security.yaml vendored Normal file
View file

@ -0,0 +1,29 @@
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