summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatalia <124304+nessita@users.noreply.github.com>2026-04-28 13:22:28 -0300
committernessita <124304+nessita@users.noreply.github.com>2026-04-28 14:13:42 -0300
commit60cb5f6b3827b0f3f234dff98e4688039e800b57 (patch)
treec83c9ad3097f79c726196be3bd3f46dce6cc1ddf
parentda6771440a294fcec5f774e4ccdff46649cb7522 (diff)
[checklists] Ensure CVE json record specifies versions to be "python" type.
Fixes #2605.
-rw-r--r--checklists/models.py4
-rw-r--r--checklists/tests/test_models.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/checklists/models.py b/checklists/models.py
index d369f35f..ad44dbf7 100644
--- a/checklists/models.py
+++ b/checklists/models.py
@@ -661,12 +661,12 @@ class SecurityIssue(models.Model):
"status": "affected",
"version": f"{release.feature_version}",
"lessThan": release.version,
- "versionType": "semver",
+ "versionType": "python",
},
{
"status": "unaffected",
"version": release.version,
- "versionType": "semver",
+ "versionType": "python",
},
]
)
diff --git a/checklists/tests/test_models.py b/checklists/tests/test_models.py
index 3dd92499..90fd719d 100644
--- a/checklists/tests/test_models.py
+++ b/checklists/tests/test_models.py
@@ -588,23 +588,23 @@ class SecurityReleaseChecklistTestCase(BaseChecklistTestCaseMixin, TestCase):
"lessThan": "5.1.8",
"status": "affected",
"version": "5.1",
- "versionType": "semver",
+ "versionType": "python",
},
{
"status": "unaffected",
"version": "5.1.8",
- "versionType": "semver",
+ "versionType": "python",
},
{
"lessThan": "5.0.14",
"status": "affected",
"version": "5.0",
- "versionType": "semver",
+ "versionType": "python",
},
{
"status": "unaffected",
"version": "5.0.14",
- "versionType": "semver",
+ "versionType": "python",
},
],
}