Repository navigation
build(deps-dev): atualiza certifi e filelock (alertas do pip-audit) - #11
Merged
Merged
Conversation
O pip-audit, check obrigatório, falhava em todas as PRs por causa de duas dependências transitivas do grupo dev: - certifi 2026.7.22 -> 2026.11.20: CVE-2026-144304 (crítica). O bundle confiava em raízes emSign com intermediárias comprometidas. - filelock 4.0.12 -> 4.3.2: 13 CVEs (1 alta, 9 médias, 3 baixas). O filelock corrigido (4.2.1 ou superior) exige Python 3.11. O pip-audit é o único que puxa o filelock (via cachecontrol) e passa a ser instalado só no Python 3.11 ou superior. O CI já audita no 3.12. Assim nenhuma versão vulnerável fica no lock. O pacote publicado não muda: ele não tem dependências de runtime.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Descrição
O
pip-audit, check obrigatório do workflow Segurança, falha em todas as PRs abertas e na execução semanal domaster(30/11). A causa são duas dependências transitivas do grupodevnouv.lock:certifi(viarequests, usado porpip-auditetwine)filelock(viacachecontrol[filecache], usado pelopip-audit)O
filelockcorrigido (4.2.1 ou superior) exige Python 3.11. Para não sobrar versão vulnerável no lock, opip-auditpassa a ser instalado só no Python 3.11 ou superior (marcador no grupodevdopyproject.toml). O CI já audita no Python 3.12. OCONTRIBUTING.mdexplica como auditar com Python 3.10 (uvx pip-audit).Nenhuma outra versão muda. Por versão do Python:
certifiefilelockmudam.pip-audite as 16 dependências exclusivas dele saem do ambiente, e ocertifisobe.Sem entrada no CHANGELOG: o pacote publicado não muda.
Tipo de mudança
Verificação
pip-auditcom os mesmos comandos do CI, no Python 3.12: nenhuma vulnerabilidade conhecida.uv synctravado no Python 3.10, sempip-audite semfilelockno ambiente.pytest: 392 passaram, 13 pulados (testes ao vivo opt-in).ruff check,ruff format --check,mypy --strict,banditepytest(392 passaram, 13 pulados): OK.uv buildetwine check --strict: OK.Riscos/Impactos
uv run pip-audite passa a usaruvx pip-audit.noqaque o ruff 0.17 acusa (RUF100).