> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Repo advisories

> Published security advisories of one GitHub repository (its Security > Advisories tab) by owner/name or URL, or one of them by GHSA id or github.com/{owner}/{name}/security/advisories/GHSA-... URL: summary, markdown description, severity, CVSS v3/v4, CWEs, affected packages with vulnerable ranges and patched versions (including ecosystems the global database does not cover), credits, publisher and dates. Cursor-paged, newest published first by default. Covers maintainer-published advisories that never reach OSV.dev or the global database. An unknown repository or advisory is not_found.

## 请求规范

* **方法与路径:** POST /apis/v1/github/repositories/repo-advisories
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/github/repositories/repo-advisories`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi-public/zh/github.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "github.repositories.repo-advisories",
  "method": "POST",
  "path": "/apis/v1/github/repositories/repo-advisories",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "direction": "asc",
              "per_page": 3,
              "repo": "openai/codex",
              "sort": "published"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "repo": {}
                  },
                  "required": [
                    "repo"
                  ]
                },
                {
                  "properties": {
                    "url": {}
                  },
                  "required": [
                    "url"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "cursor": {
              "description": "next_cursor from the previous page. Pattern: ^[A-Za-z0-9+/=%_-]+$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "direction": {
              "default": "desc",
              "description": "direction\n\nProvider reference: allowed values [\"asc\", \"desc\"]; default \"desc\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "asc",
                  "desc"
                ]
              }
            },
            "ghsa_id": {
              "description": "GHSA id, for example GHSA-jfh8-c2jp-5v3q. Pattern: ^[Gg][Hh][Ss][Aa](?:-[23456789cfghjmpqrvwxCFGHJMPQRVWX]{4}){3}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "per_page": {
              "default": 30,
              "description": "per_page\n\nProvider reference: minimum 1; maximum 100; default 30.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "repo": {
              "description": "Repository as owner/name. Provide exactly one of repo or url. Pattern: ^@?/?[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?/[A-Za-z0-9._-]{1,100}(?:\\.git)?/?$.",
              "type": "string"
            },
            "sort": {
              "default": "published",
              "description": "sort\n\nProvider reference: allowed values [\"published\", \"updated\", \"created\"]; default \"published\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "published",
                  "updated",
                  "created"
                ]
              }
            },
            "url": {
              "description": "github.com repository URL, its /security/advisories page, or one advisory's URL (which selects that advisory). Pattern: ^(?:https?://)?(?:www\\.)?github\\.com/[A-Za-z0-9-]{1,39}/[A-Za-z0-9._-]{1,100}(?:[/?#].*)?$.",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi-public/zh/github.json POST /apis/v1/github/repositories/repo-advisories
openapi: 3.1.0
info:
  description: ''
  title: GitHub
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    github:
      description: ''
      title: GitHub
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 73828e8d56ce13a665df0455fed65723eef8eca8b9daaf3df1dc8393b54fda3a
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/github/profiles/{handle}
    - /apis/v1/github/profiles/{handle}/activity
    - /apis/v1/github/profiles/{handle}/contributions
    - /apis/v1/github/profiles/{handle}/followers
    - /apis/v1/github/profiles/{handle}/following
    - /apis/v1/github/profiles/{handle}/pull-requests
    - /apis/v1/github/profiles/{handle}/repositories
    - /apis/v1/github/repositories
    - /apis/v1/github/repositories/advisory
    - /apis/v1/github/repositories/contributors
    - /apis/v1/github/repositories/file
    - /apis/v1/github/repositories/issue-counts
    - /apis/v1/github/repositories/issues
    - /apis/v1/github/repositories/labels
    - /apis/v1/github/repositories/latest-release
    - /apis/v1/github/repositories/malware-advisories
    - /apis/v1/github/repositories/releases
    - /apis/v1/github/repositories/repo
    - /apis/v1/github/repositories/repo-advisories
    - /apis/v1/github/repositories/search-advisories
    - /apis/v1/github/repositories/search-repos
    - /apis/v1/github/trending/developers
    - /apis/v1/github/trending/repositories
  x-aisa-document:
    composer_version: '31'
    facts_hash: 73828e8d56ce13a665df0455fed65723eef8eca8b9daaf3df1dc8393b54fda3a
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:a055d89f62349e434a949353c82c3e802d4c1431c066f986216eec578e7f054b
    document_hash: sha256:9dc6e539704826c0c3ce6b4314a66e0e0af86714e3c0350d0ce04fdb4b5c98ce
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: github
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/github/repositories/repo-advisories:
    post:
      tags:
        - GitHub
      summary: Repo advisories
      description: >-
        Published security advisories of one GitHub repository (its Security >
        Advisories tab) by owner/name or URL, or one of them by GHSA id or
        github.com/{owner}/{name}/security/advisories/GHSA-... URL: summary,
        markdown description, severity, CVSS v3/v4, CWEs, affected packages with
        vulnerable ranges and patched versions (including ecosystems the global
        database does not cover), credits, publisher and dates. Cursor-paged,
        newest published first by default. Covers maintainer-published
        advisories that never reach OSV.dev or the global database. An unknown
        repository or advisory is not_found.
      operationId: github.repositories.repo-advisories
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  direction: asc
                  per_page: 3
                  repo: openai/codex
                  sort: published
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        repo: {}
                      required:
                        - repo
                    - properties:
                        url: {}
                      required:
                        - url
              properties:
                cursor:
                  description: >-
                    next_cursor from the previous page. Pattern:
                    ^[A-Za-z0-9+/=%_-]+$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                direction:
                  default: desc
                  description: >-
                    direction


                    Provider reference: allowed values ["asc", "desc"]; default
                    "desc".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - asc
                      - desc
                ghsa_id:
                  description: >-
                    GHSA id, for example GHSA-jfh8-c2jp-5v3q. Pattern:
                    ^[Gg][Hh][Ss][Aa](?:-[23456789cfghjmpqrvwxCFGHJMPQRVWX]{4}){3}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                per_page:
                  default: 30
                  description: |-
                    per_page

                    Provider reference: minimum 1; maximum 100; default 30.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                repo:
                  description: >-
                    Repository as owner/name. Provide exactly one of repo or
                    url. Pattern:
                    ^@?/?[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?/[A-Za-z0-9._-]{1,100}(?:\.git)?/?$.
                  type: string
                sort:
                  default: published
                  description: >-
                    sort


                    Provider reference: allowed values ["published", "updated",
                    "created"]; default "published".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - published
                      - updated
                      - created
                url:
                  description: >-
                    github.com repository URL, its /security/advisories page, or
                    one advisory's URL (which selects that advisory). Pattern:
                    ^(?:https?://)?(?:www\.)?github\.com/[A-Za-z0-9-]{1,39}/[A-Za-z0-9._-]{1,100}(?:[/?#].*)?$.
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-23T21:10:24+00:00.
                  summary: Official provider example
                  value:
                    advisories:
                      - credits: []
                        cve_id: CVE-2025-59532
                        cvss_v3: null
                        cvss_v4:
                          score: 8.6
                          vector_string: >-
                            CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
                        cwes: []
                        description: "Due to a bug in the sandbox configuration logic, Codex CLI could treat a model-generated `cwd` as the sandbox’s writable root, including paths outside of the folder where the user started their session.\r\n\r\nThis logic bypassed the intended workspace boundary and enables arbitrary file writes and command execution where the Codex process has permissions - this did not impact the network-disabled sandbox restriction.\r\n\r\n**Remediation**\r\nWe released a patch in Codex CLI **0.39.0** that canonicalizes and validates that the boundary used for sandbox policy is based on where the user started the session, and not the one generated by the model. Users running 0.38.0 or earlier should update immediately via their package manager or by reinstalling the latest Codex CLI to ensure sandbox boundaries are enforced.\r\n\r\nIf using the Codex IDE extension, users should immediately update to **0.4.12** for a fix of the sandbox issue.\r\n\r\nThank you to Tzanko Matev (Codetracer) for reporting the issue!"
                        ghsa_id: GHSA-w5fx-fh39-j5rw
                        html_url: >-
                          https://github.com/openai/codex/security/advisories/GHSA-w5fx-fh39-j5rw
                        identifiers:
                          - type: GHSA
                            value: GHSA-w5fx-fh39-j5rw
                          - type: CVE
                            value: CVE-2025-59532
                        packages:
                          - ecosystem: npm
                            first_patched_version: 0.39.0
                            name: '@openai/codex'
                            vulnerable_functions: []
                            vulnerable_version_range: 0.2.0 <= 0.38.0
                          - ecosystem: vs code
                            first_patched_version: 0.4.12
                            name: Codex IDE Extension
                            vulnerable_functions: []
                            vulnerable_version_range: <= 0.4.11
                        published_at: '2025-09-19T00:24:10Z'
                        publisher: fouad-openai
                        severity: high
                        state: published
                        summary: Sandbox bypass due to bug in path configuration logic
                        updated_at: '2025-09-22T20:07:26Z'
                        withdrawn_at: null
                    attribution: >-
                      GitHub Advisory Database (https://github.com/advisories),
                      licensed CC BY 4.0
                    count: 1
                    ghsa_id: null
                    license: CC-BY-4.0
                    next_cursor: null
                    observed_at_ms: 1792789824000
                    repo: openai/codex
                    source_url: >-
                      https://github.com/openai/codex/security/advisories?state=published
                    upstream_requests: 1
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Published security advisories of one GitHub repository (its Security
            > Advisories tab) by owner/name or URL, or one of them by GHSA id or
            github.com/{owner}/{name}/security/advisories/GHSA-... URL: summary,
            markdown description, severity, CVSS v3/v4, CWEs, affected packages
            with vulnerable ranges and patched versions (including ecosystems
            the global database does not cover), credits, publisher and dates.
            Cursor-paged, newest published first by default. Covers
            maintainer-published advisories that never reach OSV.dev or the
            global database. An unknown repository or advisory is not_found.


            The response contains the tool result directly.


            The provider identifies `advisories` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `credits` | object[] |  |

            | `cve_id` | string |  |

            | `cvss_v3` | object | CVSS v3 base score and vector; null when
            GitHub has no v3 score. |

            | `cvss_v4` | object | CVSS v4 base score and vector; null when
            GitHub has no v4 score. |

            | `cwes` | object[] |  |

            | `description` | string | Markdown advisory text. |

            | `ghsa_id` | string |  |

            | `html_url` | string |
            https://github.com/{owner}/{name}/security/advisories/{ghsa_id} |

            | `identifiers` | object[] |  |

            | `packages` | object[] |  |

            | `published_at` | string |  |

            | `publisher` | string | Login of the maintainer who published it. |

            | `severity` | string |  |

            | `state` | string | published or withdrawn for public advisories. |

            | `summary` | string |  |

            | `updated_at` | string |  |

            | `withdrawn_at` | string |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.