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

actionsGetCustomOidcSubClaimForRepo

Get the customization template for an OIDC subject claim for a repository

Details

  • Method: GET
  • Path: /repos/{owner}/{repo}/actions/oidc/customization/sub
  • Operation ID: actions/get-custom-oidc-sub-claim-for-repo

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"
  }
}

Response Schema

{
  "title": "Actions OIDC subject customization for a repository",
  "description": "Actions OIDC subject customization for a repository",
  "type": "object",
  "properties": {
    "use_default": {
      "description": "Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.",
      "type": "boolean"
    },
    "include_claim_keys": {
      "description": "Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "use_default"
  ]
}

Usage

from ocp_agent import OCPAgent

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

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