Repository navigation
Conversation
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
… file Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
…e protocol Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
This branch has not been deployed
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.
Summary
Task 0.4 of the 0.11.0 plan (#367): audit the Python and npm lock files for known vulnerabilities, and record why OWASP
Dependency-Check is not adopted.
.github/workflows/security-audit.yml: adependenciesjob runs on the weekly schedule, on manual dispatch and onpull requests that change
uv.lock,ui/package-lock.jsonorwebsite/requirements.txt. It exports the frozen lock(
uv export --frozen --all-extras --all-groups --no-emit-project) and audits it with a pinnedpip-audit(
--no-deps --disable-pip, so nothing is resolved or installed), auditswebsite/requirements.txtthe same way, andruns
npm audit --audit-level=highinui/. The job hascontents: readonly. The workflow audit (zizmor) staysoff pull request runs: it uploads SARIF, which needs
security-events: write.docs/decisions/004-dependency-audit-tooling.md(new, indexed indocs/decisions/README.mdand in the bundledsharpit docscatalogue): Dependency-Check has nouv.lockanalyzer, and its Python analyzers are experimental;coverage comes from
pip-audit,npm audit, the CodeQLextendedsuite and zizmor.tests/test_ci_layout.py: the triggers, commands and job conditions are pinned.Running the audits on the current locks reports no known vulnerabilities (Python lock, website requirements, npm lock),
so no dependency bump or ignore is needed.
This pull request is stacked on the 0.11.0 integration branch (#368 to #373); review the last two commits.
Red evidence
tests/test_ci_layout.py::test_dependency_audit_covers_the_python_and_npm_locksRED (assertion under tests/):assert ' pull_request:' in triggertests/test_ci_layout.py::test_zizmor_audit_does_not_run_on_pull_requestsRED (assertion under tests/)Verification
uvx --from actionlint-py==1.7.12.25 actionlint(clean);uvx zizmor@1.32.0 --offline --min-severity low .github/workflows(no findings);uv run ruff check,uv run ruff format --check,uv run pyright(0 errors);uv run pytest -q -n 4 tests/test_ci_layout.py tests/docs.