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

actionsSetCustomOidcSubClaimForRepo

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

Details

  • Method: PUT
  • Path: /repos/{owner}/{repo}/actions/oidc/customization/sub
  • Operation ID: actions/set-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"
  },
  "use_default": {
    "description": "Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.",
    "required": true,
    "location": "body",
    "type": "boolean"
  },
  "include_claim_keys": {
    "description": "Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.",
    "required": false,
    "location": "body",
    "type": "array"
  }
}

Response Schema

{
  "title": "Empty Object",
  "description": "An object without any properties.",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Usage

from ocp_agent import OCPAgent

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

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