Repository navigation
fix: keep summary when it contains CVE-ID - #41
Merged
Merged
Conversation
Anchor the CVE-ID regex to the start of the line so a summary such as "deps: CVE-ID: CVE-2024-1234 fix" is kept as the summary instead of only setting cveId. Leading whitespace stays optional, so unindented CVE-ID trailers still match.
rvagg
approved these changes
Nov 20, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 20, 2026
## [3.0.4](v3.0.3...v3.0.4) (2026-11-20) ### Bug Fixes * keep summary when it contains CVE-ID ([#41](#41)) ([59b2bb5](59b2bb5))
|
🎉 This PR is included in version 3.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
The
CVE-ID:regex was unanchored (\bCVE-ID:) and ran before the summary branch. A summary line containingCVE-ID:, such asdeps: CVE-ID: CVE-2024-1234 fix, setcveIdand was never recorded as the summary. The first body line became the summary instead.The regex is now anchored to the start of the line:
/^\s*CVE-ID:\s+(CVE-\d{4}-\d{4,})\b/.CVE-ID:trailers parse as before.CVE-ID:lines, e.g. fromgit log --format=%B, still setcveId.CVE-ID:appearing partway through a line no longer setscveId. The line is parsed as summary or description.