License Example 1 - Setting an 'allowed_licenses' criteria

JFrog REST APIs

ft:sourceType
Paligo

Payloads

{
    "name": "lic_policy",
    "description": "License policy",
    "type": "license",
    "rules": [
        {
            "name": "lic_rule",
            "criteria": {
                "allowed_licenses": [
                    "Apache-1.0",
                    "Apache-2.0"
                ],
                "allow_unknown": true
            },
            "actions": {
                "webhooks": [],
                "block_download": {
                    "active": true,
                    "unscanned": true
                },
                "block_release_bundle_distribution": true,
                "fail_build": true,
                "custom_severity": "high"
            },
            "priority": 1
        }
    ]
}