-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CVE and CWE roles #11781
Add CVE and CWE roles #11781
Conversation
Co-authored-by: Bénédikt Tran <[email protected]>
No objection in principle, though this feels like a feature is missing to make this easier -- these roles are just extlinks, in bold, with customised classes ('cve'/'cwe') and index entries. A |
We could refactor this by adding a class reponsible for this kind of things maybe? |
# Conflicts: # sphinx/roles.py # tests/test_markup/test_markup.py
cc @picnixz was anything outstanding on this? |
Ok, so something happened in between. I'll need to check the markup though I don't think I've changed anything on that part. So it appears that only the CWE role fails. Hum. |
My fault, A |
Oh. Yes the URL :') (dealing with CVE/CWE is the worst, there is only one letter differencing the two variables...) |
Sphinx 8.1 added :cve: role, so there is no need to define it in Django: - sphinx-doc/sphinx#11781 This also changes used URL to the one used by Python and soonish to be used by Sphinx itself: - sphinx-doc/sphinx#13006
Sphinx 8.1 added :cve: role, so there is no need to define it in Django: - sphinx-doc/sphinx#11781 This also changes used URL to the one used by Python and soonish to be used by Sphinx itself: - sphinx-doc/sphinx#13006
Sphinx 8.1 added :cve: role, so there is no need to define it in Django: - sphinx-doc/sphinx#11781 This also changes used URL to the one used by Python and soonish to be used by Sphinx itself: - sphinx-doc/sphinx#13006 Backport of 263f731 from main.
Sphinx 8.1 added :cve: role, so there is no need to define it in Django: - sphinx-doc/sphinx#11781 This also changes used URL to the one used by Python and soonish to be used by Sphinx itself: - sphinx-doc/sphinx#13006
Subject:
Feature or Bugfix
Purpose
cve
role to turn:cve:`2020-10735`
into https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735cwe
role to turn:cwe:`787`
into https://cwe.mitre.org/data/definitions/787.htmlDetail
cve
andcwe
roles, similar to existingpep
andrfc
roles, to link to the Common Vulnerabilities and Exposures and Common Weakness Enumeration websites.Relates