Завершить трек 2: burn-rate alerts, повторные эксперименты и отчёт

This commit is contained in:
2026-11-27 17:23:49 +03:00
parent 0355ba13d2
commit a5c650bcf5
50 changed files with 69318 additions and 300 deletions
+3 -2
View File
@@ -24,11 +24,12 @@ def main():
forbidden=[p for p in tracked if p.startswith(('secrets/','.env','data/','volumes/')) and p!='.env.example']
local_secrets=[p.read_bytes().strip() for p in (ROOT/'secrets').glob('*') if p.is_file() and p.stat().st_size>8]
leaks=[]
for name in tracked:
inspected=sorted(set(tracked)|{p.relative_to(ROOT).as_posix() for p in (ROOT/'evidence').rglob('*') if p.is_file()})
for name in inspected:
if not name or not (ROOT/name).is_file():continue
content=(ROOT/name).read_bytes()
if any(secret in content for secret in local_secrets):leaks.append(name)
if b'-----BEGIN PRIVATE KEY-----' in content:leaks.append(name)
if b'-----BEGIN '+b'PRIVATE KEY-----' in content:leaks.append(name)
identities=git('log',BASE+'..HEAD','--format=%H|%an|%ae|%cn|%ce').decode().splitlines()
invalid=[line for line in identities if line.split('|')[1:]!=['Sergey Lyakhonov','lyserg119@gmail.com','Sergey Lyakhonov','lyserg119@gmail.com']]
previous={}