comment_on_pr
Post a security summary comment on a GitHub pull request or GitLab merge request using Markdown body, with credentials from environment variables.
Instructions
Post a security summary comment on a GitHub PR or GitLab merge request.
Credentials come from environment variables only: GITHUB_TOKEN for GitHub, or GITLAB_TOKEN (+ optional GITLAB_URL) for GitLab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | 'github' or 'gitlab'. | |
| repo | Yes | For GitHub, 'owner/name'. For GitLab, the numeric project ID or URL-encoded 'group/project' path. | |
| pr_number | Yes | PR number (GitHub) or merge request IID (GitLab). | |
| body | Yes | Markdown comment body (e.g. a scan summary or gate result). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |