fossa_set_snippet_rejection
Reject snippet matches to stop FOSSA from counting false positives, or reverse rejections to restore them. Manage rejection filters by path, IDs, or labels.
Instructions
Reject snippet matches so FOSSA stops counting them, or unreject ones that were rejected before.
WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true, and additionally
FOSSA_ALLOW_DESTRUCTIVE=true unless snippet_ids or package_ids names the
snippets explicitly.
Rejecting is how a false-positive snippet match is dismissed, and it
suppresses the licensing issues that match raised. FOSSA takes a filter, not
a list: path="/" with nothing else rejects every snippet match in the
revision, which is why an unnarrowed call needs the destructive tier. Naming
ids keeps the target set visible and stays at the write tier.
Set rejected=False to reverse a rejection; the same filter rules apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| search | No | ||
| rejected | Yes | ||
| package_ids | No | ||
| snippet_ids | No | ||
| package_labels | No | ||
| vendored_match | No | ||
| project_locator | Yes | ||
| rejection_status | No | ||
| revision_locator | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||