Comment on a pull request about threats
comment_threat_on_changeFor a completed pipeline scan of a pull request: post, or update, one comment per threat whose linked code the pull request changes. A re-run with nothing changed makes no calls. Returns each comment's status (posted, updated, skipped with the reason, failed). Public repositories are skipped with the reason 'public repository'. Error codes: permission_missing, role_missing, destination_not_found, already_filed, rate_limited, assignee_unmapped, no_route, no_entry, not_found, invalid, no_company, tracker_error, filed_unrecorded, outcome_unknown, not_attempted, not_configured, tracker_unreachable, unsupported. Do not resend filed_unrecorded or outcome_unknown items without checking the tracker; resend not_attempted items to continue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan_id | Yes | Pipeline scan id (uuid) |