How to use the vulnix.derivation.split_name function in vulnix

To help you get started, we’ve selected a few vulnix examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flyingcircusio / vulnix / src / vulnix / whitelist.py View on Github external
def read_toml(content):
    check_section_header(content)
    for k, v in toml.loads(content, collections.OrderedDict).items():
        if len(v.values()) and isinstance(list(v.values())[0], dict):
            raise RuntimeError('malformed section header -- forgot quotes?', k)
        pname, version = split_name(k)
        yield WhitelistRule(pname=pname, version=version, **v)

vulnix

Scans a Nix store for derivations that are affected by vulnerabilities.

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

49 / 100
Full package analysis