fossa_enable_security_policy
Assign a FOSSA security policy to a project and enable enforcement that blocks packages violating it. Activates security scanning and status check.
Instructions
Assign a FOSSA security policy to a project and turn on the enforcement that blocks packages violating it.
WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true.
Blocking in FOSSA is the combination of an assigned security policy (which
decides what counts as a violation), security issue scanning (which finds
violations), and the security status check (which fails the build). This
tool sets all three. security_policy_id is the numeric id from the
policy's FOSSA URL; the API exposes no way to list policies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_locator": "<project_locator>",
"security_policy_id": "<security_policy_id>"
},
"name": "fossa_enable_security_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable_scanning | No | ||
| project_locator | Yes | ||
| security_policy_id | Yes | ||
| enable_status_check | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||