We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec37dd3 commit 88eb261Copy full SHA for 88eb261
app/utils/code_analyzer/codes/is_relevant.py
@@ -0,0 +1,5 @@
1
+async def is_relevant(artifact: str, artefacts: list[str], cve_description: str) -> bool:
2
+ artifact_lower = artifact.lower()
3
+ if artifact_lower in cve_description.lower():
4
+ return True
5
+ return artifact in artefacts
0 commit comments