Security advisories
List vulnerability reports
List the vulnerability reports people sent the repository's maintainers privately, new ones first.
GET
/repos/{owner}/{name}/security/reportsThose who see findings (Write, or a security manager). Filter by state (new, accepted, declined). Reporters never see this list.
New reports first. Those who see the repository’s findings (Write, or a security manager) read them; a reporter never sees another’s. state is new, accepted or declined.
- Authentication: Required. Send an access token as
Authorization: Bearer. - MCP tool:
securitywithactionreports, and the same inputs - Scope: An access token needs
security:read.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
owner |
string | Yes | The workspace that owns the repository. |
name |
string | Yes | The repository’s name. |
Query parameters
Section titled “Query parameters”| Name | Type | Required | Description |
|---|---|---|---|
state |
string | No | Only reports in this state. One of new, accepted, declined. |
Example request
Section titled “Example request”curl "https://api.g1t.sh/repos/flagon-io/hello/security/reports?state=new" \ -H "Authorization: Bearer $G1T_TOKEN"Example response
Section titled “Example response”A successful request answers 200 with:
[ { "id": "vrp_01kq2p9f6g7h8j9k0m1n2p3q4r", "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r", "repo": "flagon-io/hello", "reporter": null, "reporter_email": "finder@example.com", "title": "Path traversal in the archive reader", "description": "Extracting an archive with an entry named ../../etc/passwd writes outside the target directory. Steps: …", "severity": "high", "state": "new", "advisory_id": null, "created_at": "2026-10-06T08:40:11.000Z", "reviewed_by": null, "reviewed_at": null, "review_note": null }]Errors
Section titled “Errors”A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthenticated |
A token is required, or the one sent is not valid. |
| 403 | forbidden |
The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository. |
| 404 | not_found |
It does not exist, or you cannot see it. |
| 422 | invalid |
The input is not valid. message says which field and why. |