MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / is_purl_in_affected

Function is_purl_in_affected

vulntotal/datasources/snyk.py:327–328  ·  view source on GitHub ↗
(version, affected)

Source from the content-addressed store, hash-verified

325
326
327def is_purl_in_affected(version, affected):
328 return any(snyk_constraints_satisfied(affected_range, version) for affected_range in affected)
329
330
331def generate_advisory_payload(snyk_id):

Callers 1

datasource_advisoryMethod · 0.85

Calls 1

Tested by

no test coverage detected