@@ -29,26 +29,37 @@ This check determines whether the project has open, unfixed vulnerabilities in
2929its own code base or in its dependencies. An open vulnerability can be easily
3030exploited and should be closed as soon as possible.
3131
32- For such a check, you can use for example `uv-secure
33- <https://pypi.org/project/uv-secure/> `_. Alternatively, you can use `osv
34- <https://pypi.org/project/osv/> `_ or `pip-audit
35- <https://pypi.org/project/pip-audit/> `_, which uses the `Open Source
32+ For such a check, you can use for example `uv audit <uv-audit> `. Alternatively,
33+ you can use `osv <https://pypi.org/project/osv/ >`_ or `pip-audit
34+ <https://pypi.org/project/pip-audit/> `_.They usually refer to the `Open Source
3635Vulnerability Database <https://osv.dev> `_.
3736
3837If a vulnerability is found in a dependency, you should update to a
3938non-vulnerable version; if no update is available, you should consider removing
4039the dependency.
4140
42- If you believe that the vulnerability does not affect your project, an
43- :file: ` osv-scanner.toml ` file can be created for ``osv ``, including the ID to
44- ignore and a reason, for example:
41+ If you believe that the security vulnerability does not affect your project, you
42+ can define exceptions for ``uv audit `` in the :file: ` pyproject.toml ` file, for
43+ example:
4544
4645.. code-block :: toml
46+ :caption: pyproject.toml
4747
48- [[IgnoredVulns]]
49- id = "GO-2022-1059"
50- # ignoreUntil = 2022-11-09 # Optional exception expiry date
51- reason = "No external http servers are written in Go lang."
48+ [tool.uv.audit]
49+ ignore = ["PYSEC-2022-43017", "GHSA-5239-wwwm-4pmq"]
50+
51+ or better still:
52+
53+ .. code-block :: toml
54+ :caption: pyproject.toml
55+
56+ [tool.uv.audit]
57+ ignore-until-fixed = ["PYSEC-2022-43017"]
58+
59+ .. seealso ::
60+ * `ignore <https://docs.astral.sh/uv/reference/settings/#audit_ignore >`_
61+ * `ignore-until-fixed
62+ <https://docs.astral.sh/uv/reference/settings/#audit_ignore-until-fixed> `_
5263
5364Maintenance
5465-----------
0 commit comments