fossa_assign_security_policy_to_projects
Assign a single FOSSA security policy to multiple specified projects in one operation. Explicitly name each project locator; blank or empty lists are rejected to prevent unintended org-wide changes.
Instructions
Assign one FOSSA security policy to several projects at once.
WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true.
Assignment only. Unlike fossa_enable_security_policy this does not touch scanning or the status check, because the bulk endpoint cannot set them — a project that has scanning switched off will take the policy and still block nothing.
This tool deliberately does not expose the endpoint's "apply to all projects matching these filters" mode. Every target must be named explicitly, and an empty or all-blank list is refused rather than sent — FOSSA does not enforce the locator list as required, so the resulting request would re-policy every project in the organization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_locators | Yes | ||
| security_policy_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||