Visitar URL original
Support linking to CWEs by hugovk · Pull Request #122 · sloria/sphinx-issues · GitHub
Skip to content

Support linking to CWEs - #122

Merged
sloria merged 2 commits into
sloria:masterfrom
hugovk:add-cwe
Jan 1, 2022
Merged

sloria merged 2 commits into
sloria:masterfrom
hugovk:add-cwe

Conversation

@hugovk

@hugovk hugovk commented Dec 24, 2021 •

Copy link
Copy Markdown
Contributor

Add support for linking to CWE numbers at https://cwe.mitre.org, such as CWE-787 at https://cwe.mitre.org/data/definitions/787.html with:

:cwe:`CWE-787`

The structure is similar to CVEs.

@hugovk

hugovk commented Jan 1, 2022

Copy link
Copy Markdown
Contributor Author

@sloria I have a security release scheduled for tomorrow, it would be great to use this in the release notes. Any chance of a release with this today?

Thank you and happy new year!

@sloria sloria left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! thanks

Comment thread sphinx_issues.py

target = utils.unescape(target).strip()
title = utils.unescape(title).strip()
number = target[4:]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought (non-blocking): would it make sense to also support :cwe:787 here?

no need to do this now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do! But should we also support this?

:cve:`2018-17175`

In addition to the current:

:cve:`CVE-2018-17175`

@sloria
sloria merged commit 118fa78 into sloria:master Jan 1, 2022
@sloria

sloria commented Jan 1, 2022

Copy link
Copy Markdown
Owner

This is released in 2.0.0

@hugovk
hugovk deleted the add-cwe branch January 1, 2022 14:24
@hugovk

hugovk commented Jan 1, 2022

Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants