# CodePipelineGitSshRepo

A git repository a code pipeline run clones and pushes over SSH.

**Kind:** an object, used in requests and responses. In a request it is called `CodePipelineGitSshRepoInput`.

## In a request

| Field | Type | Required | Description |
|---|---|---|---|
| `gitAddress` | `string` |  | The repository's SSH address, for example `git@github.com:org/repo.git`. |
| `gitSshKey` | `base64` |  | The private SSH key to clone and push with, base64-encoded. Required. Write-only: never returned. |
| `name` | `string` |  | The repository's name, unique within the run. Steps name it in `commitRepoName`. |
| `branchSource` | `string` |  | The branch to start from. |
| `branchWork` | `string` |  | The branch the agents' work is committed and pushed to. It can be the same as `branchSource`. |
| `mcpServer` | [`CodePipelineProcessMcpServerInput`](https://docs.maitento.com/reference/types/code-pipeline-process-mcp-server.md#in-a-request)`\| null` |  | A command that runs an MCP server from the repository's checkout, which the agents can then call as tools. Null: none. |
| `resolvedCommitSha` | `string \| null` |  | The commit the work branch was at once the repository was checked out for the current attempt. Null until then. |
| `runBaseCommitSha` | `string \| null` |  | The commit the work branch was at when the run first checked it out. Unlike `resolvedCommitSha` it never changes when the run is resumed, so it is where the run's work began. Set by Maitento; any value you send is ignored. |
| `finalCommitSha` | `string \| null` |  | The commit the work branch was at after the run's last successful push: what the run delivered. Null when the run pushed nothing to this repository. |
| `dateLastCommitUtc` | `datetime \| null` |  | When the last successful push landed, in UTC. Null exactly when `finalCommitSha` is. |

```json
{
  "gitAddress": "...",
  "gitSshKey": "aGVsbG8=",
  "name": "...",
  "branchSource": "...",
  "branchWork": "...",
  "mcpServer": {
    "command": "...",
    "args": [
      "..."
    ]
  },
  "resolvedCommitSha": "...",
  "runBaseCommitSha": "...",
  "finalCommitSha": "...",
  "dateLastCommitUtc": "2026-10-26T12:00:00.0000000Z"
}
```

## In a response

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `gitAddress` | `string` | The repository's SSH address, for example `git@github.com:org/repo.git`. |
| `name` | `string` | The repository's name, unique within the run. Steps name it in `commitRepoName`. |
| `branchSource` | `string` | The branch to start from. |
| `branchWork` | `string` | The branch the agents' work is committed and pushed to. It can be the same as `branchSource`. |
| `mcpServer` | [`CodePipelineProcessMcpServer`](https://docs.maitento.com/reference/types/code-pipeline-process-mcp-server.md)`\| null` | A command that runs an MCP server from the repository's checkout, which the agents can then call as tools. Null: none. |
| `resolvedCommitSha` | `string \| null` | The commit the work branch was at once the repository was checked out for the current attempt. Null until then. |
| `runBaseCommitSha` | `string \| null` | The commit the work branch was at when the run first checked it out. Unlike `resolvedCommitSha` it never changes when the run is resumed, so it is where the run's work began. Set by Maitento; any value you send is ignored. |
| `finalCommitSha` | `string \| null` | The commit the work branch was at after the run's last successful push: what the run delivered. Null when the run pushed nothing to this repository. |
| `dateLastCommitUtc` | `datetime \| null` | When the last successful push landed, in UTC. Null exactly when `finalCommitSha` is. |

```json
{
  "gitAddress": "...",
  "name": "...",
  "branchSource": "...",
  "branchWork": "...",
  "mcpServer": {
    "command": "...",
    "args": [
      "..."
    ]
  },
  "resolvedCommitSha": "...",
  "runBaseCommitSha": "...",
  "finalCommitSha": "...",
  "dateLastCommitUtc": "2026-10-26T12:00:00.0000000Z"
}
```

## Where it's used

- Inside [`CodePipelineProcessRepo`](https://docs.maitento.com/reference/types/code-pipeline-process-repo.md)
