Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jira_pr_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ def main():
vuln_tickets.append(part.upper())

# Check for CVE line
# Assume format: "cve CVE-YYYY-NNNN"
# Assume format: "cve CVE-YYYY-NNNN", "cve-bf CVE-YYYY-NNNN", or "cve-pre CVE-YYYY-NNNN"
# There will only be one CVE per line, but possibly multiple CVEs listed
if stripped.lower().startswith('cve '):
if stripped.lower().startswith(('cve ', 'cve-bf ', 'cve-pre ')):
parts = stripped.split()
for part in parts[1:]: # Skip 'cve' keyword/tag
for part in parts[1:]: # Skip 'cve'/'cve-bf'/'cve-pre' keyword/tag
# CVES always start with CVE-
if part.upper().startswith('CVE-'):
commit_cves.append(part.upper())
Expand Down