Resolution
You may need to do one of the following, depending on the cause:
- Add the repository URL from the error to a Git credential's repository allow list
- Remove Octopus annotations to all non-Git values
- Upgrade to 2026.2.4810+
Symptom
You may see one of the following errors:
Could not find a Git Credential associated with <repository>. To associate a Git Credential with this repository, add the repository URL to a Git Credential Allow List.
If the repository URL in the error points to a valid Git URL (e.g. https://github.com/org/repo.git), this URL needs to be added to a Git credential's repository allow list.
If the repository URL instead points to a non-Git URL, like an OCI registry (ghcr.io, <registry>.azurecr.io, <account>.dkr.ecr.<region>.amazonaws.com, etc.), there are a couple potential issues.
This is most commonly hit with multi-source applications - a Helm chart from an OCI registry, plus a Git repository holding the values file. Check your annotations and remove any that are scoped to non-Git sources.
If you're deploying a multi-source application in a version older than 2026.2.4810, you need to upgrade to get the fix to this bug.
Another error you may see is this:
Cloning repository failed, invalid argument: 'port', Failed to clone Git repository at oci://…
During a deployment, Octopus is trying to git clone your Helm chart from your OCI registry because the Application scopes the chart source to your project. Octopus can only make changes by committing to Git, and Helm chart sources hosted in an OCI or Helm registry are read-only, and errors because it can't parse an OCI registry address as a Git URL.
To fix this, remove any annotations on your applications that are scoped to non-Git sources. For example:
argo.octopus.com/project.<chart-source-name>: <project-slug>
argo.octopus.com/environment.<chart-source-name>: <environment-slug>
Scope: when this is the right article
Unexpected Git credential errors deploying Argo applications with OCI sources.
Cause
Octopus treats every source that has project and environment annotations as a Git repo it should check out and update. OCI registries are read-only, and their addresses don't parse as Git URLs.
If you have a chart in OCI with your values file in Git, you should only annotate the values source, and not the OCI source.
Diagnosis and fix
- Note the repository URL in the error message.
- If it's a standard Git URL, update your Git Credential's repository allow list to include your application's repository.
- If it's not a Git-URL, confirm your Argo CD application's annotations in Octopus, removing any against non-Git sources.
- If your annotations are correct, upgrade to 2026.2.4810+ to get a fix to this bug.
Verify
The deployment succeeds without a Git credential error, and there are no errors in the deployment preview.
Related
Documentation: Scoping Annotations
Troubleshooting Argo CD in Octopus
Argo CD Authentication