ci(security): workflow skanowania CVE w uv.lock + bump jaraco.context#180
Merged
Conversation
…ontext Praktyka #6 z lirantal/pypi-security-best-practices (Scan for Known Vulnerabilities). Nowy workflow .github/workflows/dependency-audit.yml uruchamia uv-secure (natively reads uv.lock z hashami SHA-256) na: - push/PR dotykajace uv.lock lub pyproject.toml - weekly cron (poniedzialek 6:00 UTC) - workflow_dispatch (manualny) Polityka: - HIGH/CRITICAL z dostepnym fix-em -> failure (PR podbijajacy dep to jedyne wyjscie) - LOW/MEDIUM -> raport w job summary, nie blokuje - --ignore-unfixed -> CVE bez fix-a pomijane (nic nie da sie zrobic) Przy okazji wykryto i naprawiono jaraco.context 6.0.1 (GHSA-58pv-8j8x-9vj2 - ReDoS) -> bump do 6.1.2 przez: uv lock --upgrade-package "jaraco.context" Bez tego bumpa nowy workflow failowal by od razu na pierwszym runie. Akcje pinowane na SHA + persist-credentials: false (zgodnie z PR #176). Permissions: contents: read (read-only).
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.
Podsumowanie
PR 8/12 z serii pypi-security-best-practices — praktyka #6: Scan for Known Vulnerabilities.
Co się zmienia
1. Nowy workflow
.github/workflows/dependency-audit.ymluv-secureskanujeuv.lock(natively reads hashe SHA-256) na:pushdodev/masteruv.lock/pyproject.tomlpull_requestscheduleworkflow_dispatchPolicy:
to jedyne wyjście.
--ignore-unfixed→ CVE bez fix-a pomijane.2. Bump
jaraco.context6.0.1 → 6.1.2Workflow wykrył transitive vuln GHSA-58pv-8j8x-9vj2 (ReDoS) podczas
testowania lokalnie. Bez fixa workflow failowal by od razu na pierwszym
runie. Bump zrobiony przez:
Dlaczego uv-secure a nie pip-audit
uv-secure czyta
uv.locknatively (z hashami SHA-256), pip-auditpotrzebuje konwersji do
requirements.txt. uv-secure to mniej kroków,mniej miejsc gdzie coś może rozjechać. Możemy dodać pip-audit jako
second opinion w follow-up.
Plan testowy
uv-secure --severity high --ignore-unfixed uv.lock→ exit 0po bumpie jaraco.context.
contents: readonly.uv.lock.Future work
🤖 Generated with Claude Code