Skip to content

Commit

Permalink
Remove incorrect provider metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Mar 19, 2024
1 parent ef3f49a commit eef7ce0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions vdb/lib/cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
ProblemType,
ProblemTypes,
Product,
ProviderMetadata,
Reference,
References,
State,
Expand Down Expand Up @@ -207,7 +206,6 @@ def to_cve_affected(avuln: Vulnerability) -> Affected | None:
product=product,
packageName=package_name,
cpes=[Cpe(cpe_uri)],
defaultStatus=Status.unknown,
versions=versions,
)
products.append(p)
Expand Down Expand Up @@ -277,15 +275,10 @@ def to_references(avuln: Vulnerability) -> list[Reference] | None:


def to_cve_containers(avuln: Vulnerability) -> CnaPublishedContainer | None:
provier_meta = ProviderMetadata(
orgId=ASSIGNER_UUID_MAP.get(avuln.assigner, OrgId(UuidType(str(uuid.uuid4()))))
)
provier_meta.dateUpdated = avuln.source_update_time
affected = to_cve_affected(avuln)
if not affected:
return None
cont = CnaPublishedContainer(
providerMetadata=provier_meta,
descriptions=[Description(lang=Language("en"), value=avuln.description)],
affected=affected,
metrics=to_metrics(avuln),
Expand Down

0 comments on commit eef7ce0

Please sign in to comment.