fix: address vulnerability-scan re-verify findings
Hand pip-audit a marker-free requirements file built from the uv.lock export so every lock entry is audited regardless of the operator platform, and fail when a lock entry is missing from the pip-audit output; fetch PyPI digests on daemon threads so an interrupted scan exits at once; reshoot the vulnerable-lock control and name the fix versions in the remaining triage records. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1113,7 +1113,8 @@ uv run --frozen python infra/scan/scan.py --only python --project-dir <копи
|
||||
|
||||
- Коды скрипта: 0 — всё разобрано, 1 — обязательная находка без действующей записи
|
||||
`infra/scan/triage.toml` (или срок записи прошёл), 2 — сбой окружения, хэш `uv.lock` не совпал с
|
||||
PyPI, pip-audit пропустил зависимость, запуск от root или неверная запись. `make scan` отдаёт 0
|
||||
PyPI, pip-audit пропустил зависимость или её нет в его выводе (pip-audit получает записи экспорта без
|
||||
маркеров: пакетов группы = записей экспорта), запуск от root или неверная запись. `make scan` отдаёт 0
|
||||
как 0, а 1 и 2 — оба как 2 (код make): различать — запуском скрипта. Новая база Trivy (раз в сутки)
|
||||
может дать код 1 без изменений кода — разбор или обновление по правилу `docker.md`.
|
||||
- Рабочий стенд scan не трогает: тег `mtusi-messenger:scan`, контейнеры сканера — с меткой
|
||||
|
||||
Reference in New Issue
Block a user