Skip to content

Conversation

@liamhughes
Copy link
Contributor

Currently it is not possible to use the client to create or modify deployment processes that use steps that authenticate to a Git repository via a GitHub connection. Nor is it possible to create or modify step templates using a GitHub connection.

In both cases one will receive the following error: Octopus API error: There was a problem with your request. [GitHub connection must be specified when using a GitHub repository source.].

This PR adds support by adding the GitHubConnectionId field to GitDependency.

Example usage:

action.GitDependencies = []*gitdependencies.GitDependency{
    {
        Name:               "",
        RepositoryUri:      "https://github.com/example/octopus-github-web-app.git",
        DefaultBranch:      "main",
        GitCredentialType:  "GitHub",
        GitHubConnectionId: "GitHubAppConnections-1",
    },
}

@liamhughes liamhughes merged commit d77ee41 into main Dec 12, 2025
6 checks passed
@liamhughes liamhughes deleted the lh/github-connections-in-step-git-dependencies branch December 12, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants