How to use the colin.run function in colin

To help you get started, we’ve selected a few colin 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 user-cont / colin / tests / integration / test_ruleset_file.py View on Github external
def get_results_from_colin_labels_image(image, ruleset_name=None, ruleset_file=None, ruleset=None):
    return colin.run(image.target_name, image.target_type, ruleset_name=ruleset_name,
                     ruleset_file=ruleset_file, ruleset=ruleset)
github user-cont / colin / tests / integration / test_labels.py View on Github external
def get_results_from_colin_labels_image(target, parent_target=None):
    return colin.run(target=target.target_name,
                     parent_target=parent_target,
                     target_type=target.target_type,
                     ruleset_name="fedora",
                     logging_level=logging.DEBUG, pull=False)
github user-cont / colin / tests / integration / colin_tests.py View on Github external
def get_colin_test_image():
    return colin.run("colin-test")
github user-cont / colin / tests / integration / test_targets.py View on Github external
def test_podman_image_target(ruleset):
    results = colin.run(LABELS_IMAGE, "image", ruleset=ruleset, logging_level=10, pull=False)
    assert results.ok
    assert results.results_per_check["url_label"].ok
github user-cont / colin / examples / container_check.py View on Github external
import colin

result = colin.run("image")
assert result.ok
assert result.status == "passed"
print(result.logs())