Security Example 2 - Setting a 'cvss_range' criteria

JFrog REST APIs

ft:sourceType
Paligo

Payloads

{
    "name": "sec_policy",
    "description": "",
    "type": "security",
    "rules": [
        {
            "name": "sec_rule",
            "criteria": {
                "cvss_range": {
                    "from": 2.7,
                    "to": 7.1
                }
            },
            "actions": {
                "webhooks": [
                    "sec_webhook"
                ],
                "block_download": {
                    "active": true,
                    "unscanned": true
                },
                "block_release_bundle_distribution": true,
                "fail_build": true
            },
            "priority": 1
        }
    ]
}