Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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)
def get_colin_test_image():
return colin.run("colin-test")
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
import colin
result = colin.run("image")
assert result.ok
assert result.status == "passed"
print(result.logs())