ci(security): Semgrep SAST #32
@@ -52,3 +52,15 @@ jobs:
|
|||||||
# (Vite/PostCSS/etc.) shouldn't block a merge.
|
# (Vite/PostCSS/etc.) shouldn't block a merge.
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: npm audit --omit=dev --audit-level=high
|
run: npm audit --omit=dev --audit-level=high
|
||||||
|
|
||||||
|
# RECOMMENDATIONS #9: SAST. Semgrep community rules for C#/JS + OWASP/secrets patterns —
|
||||||
|
# catches injection/crypto-misuse classes the other gates (gitleaks, dep-audit, tests)
|
||||||
|
# don't look for. Advisory at first (not a required check); promote once tuned.
|
||||||
|
sast:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Semgrep scan
|
||||||
|
run: |
|
||||||
|
pip install --quiet semgrep
|
||||||
|
semgrep scan --config p/csharp --config p/javascript --config p/security-audit --exclude 'frontend/dist' --exclude '**/bin' --exclude '**/obj' --error --quiet
|
||||||
|
|||||||
Reference in New Issue
Block a user