Description
What happened?
We are experiencing a critical issue in Azure DevOps Release pipelines when using multiple private GitHub repositories as artifact sources.
Working scenarios:
• Existing (older) release pipelines that reference 2 or more private GitHub repositories continue to work without issues.
• A new release pipeline with only one private GitHub repository as an artifact works correctly.
• A new release pipeline with 2 or more public GitHub repositories works correctly.
Failing scenarios:
• Adding a new private GitHub repository to an existing release pipeline with other private GitHub repositories causes the release to fail during artifact download, even if the previously added repos still work.
• Creating a new release pipeline and adding 2 or more private GitHub repositories as artifacts causes the pipeline to fail with the following error:
2025-04-29T13:52:50.8898897Z ##[error]Downloading artifacts failed: System.InvalidOperationException: NotFound
at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.GitHubHttpClient.GetUserRepo(String accessToken, String repositoryName) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/Artifacts/GitHubHttpClient.cs:line 36
at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.GitHubArtifact.GetArtifactDetails(IExecutionContext context, AgentArtifactDefinition agentArtifactDefinition) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/Artifacts/GitHubArtifact.cs:line 108
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.<>c__DisplayClass47_0.<ConvertToArtifactDefinition>b__1() in /mnt/vss/_work/1/s/src/Agent.Worker/Release/ReleaseJobExtension.cs:line 509
at Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.Execute(Action action) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/RetryExecutor.cs:line 41
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.ConvertToArtifactDefinition(AgentArtifactDefinition agentArtifactDefinition, IExecutionContext executionContext, IArtifactExtension extension) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/ReleaseJobExtension.cs:line 506
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifacts(IExecutionContext executionContext, IList`1 agentArtifactDefinitions, String artifactsWorkingFolder) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/ReleaseJobExtension.cs:line 257
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifactsAndCommitsAsync(IExecutionContext executionContext, Object data) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/ReleaseJobExtension.cs:line 130
2025-04-29T13:52:50.8927104Z ##[error]NotFound
Additional details:
• The GitHub service connection used is the same across all pipelines (both working and failing).
• The service connection has sufficient permissions and the repos are visible in the UI when selecting the artifact.
• The default branch and version are correctly set.
• All tested GitHub repositories contain commits and valid HEAD references.
• The issue has been reproduced using:
Microsoft-hosted agents: ubuntu-latest and windows-latest
Self-hosted agents on Windows
• Agent version used in all cases: 4.254.0
Versions
4.254.0
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
No response
Version controll system
No response
Relevant log output
2025-04-29T13:52:50.8898897Z ##[error]Downloading artifacts failed: System.InvalidOperationException: NotFound
at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.GitHubHttpClient.GetUserRepo(String accessToken, String repositoryName) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/Artifacts/GitHubHttpClient.cs:line 36
at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.GitHubArtifact.GetArtifactDetails(IExecutionContext context, AgentArtifactDefinition agentArtifactDefinition) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/Artifacts/GitHubArtifact.cs:line 108
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.<>c__DisplayClass47_0.<ConvertToArtifactDefinition>b__1() in /mnt/vss/_work/1/s/src/Agent.Worker/Release/ReleaseJobExtension.cs:line 509
at Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.Execute(Action action) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/RetryExecutor.cs:line 41
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.ConvertToArtifactDefinition(AgentArtifactDefinition agentArtifactDefinition, IExecutionContext executionContext, IArtifactExtension extension) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/ReleaseJobExtension.cs:line 506
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifacts(IExecutionContext executionContext, IList`1 agentArtifactDefinitions, String artifactsWorkingFolder) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/ReleaseJobExtension.cs:line 257
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.DownloadArtifactsAndCommitsAsync(IExecutionContext executionContext, Object data) in /mnt/vss/_work/1/s/src/Agent.Worker/Release/ReleaseJobExtension.cs:line 130
2025-04-29T13:52:50.8927104Z ##[error]NotFound