security-scan gate (shared felhom.eu/scripts/security_scan_gate.py) in the fast set and CI, warn-first, with the accepted-hits file and decoys (R-986)
gates / gates (push) Successful in 40s
gates / gates (push) Successful in 40s
This commit is contained in:
1 parent
30eea97662
commit
87f558836f
6 files changed
+86
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""check-security-scan.py — runs the SHARED dependency and secret scanner on this repo (R-986).
|
||||
|
||||
The gate itself lives in ONE place, `felhom.eu/scripts/security_scan_gate.py` (the reuse_refs_check.py rule: never
|
||||
copied), and is WARN-FIRST — it lists hits and exits 0. This repo has no Go module, so it runs gitleaks on the pushed
|
||||
commits only. If the sibling felhom.eu clone is absent this FAILS and names the path it tried: a runner that quietly
|
||||
skips a gate is the inert-seam failure this project has shipped four times.
|
||||
"""
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
SHARED = os.path.join(os.path.dirname(ROOT), "felhom.eu", "scripts", "security_scan_gate.py")
|
||||
|
||||
if __name__ == "__main__":
|
||||
if not os.path.isfile(SHARED):
|
||||
print("FAIL: the shared gate is MISSING beside this clone (tried %s) — a failure, never a skip" % SHARED)
|
||||
sys.exit(1)
|
||||
sys.exit(subprocess.call([sys.executable, SHARED, ROOT]))
|
||||
Reference in new issue
Block a user