Open Context Protocol is live! 🚀 Read the launch post
reposCreateAttestation

reposCreateAttestation

Create an attestation

Details

  • Method: POST
  • Path: /repos/{owner}/{repo}/attestations
  • Operation ID: repos/create-attestation

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "bundle": {
    "description": "The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.",
    "required": true,
    "location": "body",
    "type": "object"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The ID of the attestation."
    }
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('github')

# Call this tool
result = await agent.call_tool('reposCreateAttestation', {
    # Add required parameters here
})