Skip to content

[BUG]: DownloadGitHubReleaseV0 does not work with GitHub ServiceConnection authenticated through Github App #22228

@BrentSLC

Description

@BrentSLC

New issue checklist

Task name

DownloadGitHubRelease

Task version

0.269.0

Issue Description

Authentication fails in the DownloadGitHubRelease when using a service connection created through a Github app.

It seems this task goes trough "getEndpointAuthorizationParameter" and searches specifically for the secret "ENDPOINT_AUTH_PARAMETER_' + id + '_' + ACCESSTOKEN" which does not exist according to the debug logging.

Other similar tasks (i.e. GitHubRelease) goes through "getEndpointAuthorization" Which searches for the secret "'ENDPOINT_AUTH_' + id" which does exists.

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

Microsoft Windows Server 2025

Relevant log output

2026-06-02T07:34:53.4256094Z ##[error]Error: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
    at Object.getEndpointAuthorizationParameter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\azure-pipelines-task-lib\task.js:487:15)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:139:28
    at Generator.next (<anonymous>)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:4:12)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:56
    at new Promise (<anonymous>)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:23
    at Generator.next (<anonymous>)

Full task logs with system.debug enabled

Details
2026-06-02T07:34:52.3321567Z ##[debug]Evaluating condition for step: 'Download DbTools.exe'
2026-06-02T07:34:52.3325321Z ##[debug]Evaluating: SucceededNode()
2026-06-02T07:34:52.3326310Z ##[debug]Evaluating SucceededNode:
2026-06-02T07:34:52.3328389Z ##[debug]Result: True
2026-06-02T07:34:52.3331508Z ##[section]Starting: Download DbTools.exe
2026-06-02T07:34:52.3353078Z ==============================================================================
2026-06-02T07:34:52.3353872Z Task         : Download GitHub Release
2026-06-02T07:34:52.3354322Z Description  : Downloads a GitHub Release from a repository
2026-06-02T07:34:52.3354601Z Version      : 0.269.0
2026-06-02T07:34:52.3355025Z Author       : Microsoft Corporation
2026-06-02T07:34:52.3355280Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-github-release
2026-06-02T07:34:52.3355790Z ==============================================================================
2026-06-02T07:34:52.5659246Z ##[debug]Using node path: C:\actions-runner\cached\4.273.0\externals\node24\bin\node.exe
2026-06-02T07:34:52.9435966Z ##[debug]system.debug=True
2026-06-02T07:34:52.9441240Z ##[debug]DistributedTask.Tasks.Node.SkipDebugLogsWhenDebugModeOff=True
2026-06-02T07:34:52.9546369Z ##[debug]agent.TempDirectory=D:\a\_temp
2026-06-02T07:34:52.9554816Z ##[debug]loading inputs and endpoints
2026-06-02T07:34:52.9573100Z ##[debug]loading ENDPOINT_AUTH_3462186f-1753-4faa-8ae6-73d4602258f0
2026-06-02T07:34:52.9615484Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_3462186f-1753-4faa-8ae6-73d4602258f0_IDSIGNATURE
2026-06-02T07:34:52.9625670Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_3462186f-1753-4faa-8ae6-73d4602258f0_IDTOKEN
2026-06-02T07:34:52.9631542Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2026-06-02T07:34:52.9636480Z ##[debug]loading ENDPOINT_AUTH_SCHEME_3462186f-1753-4faa-8ae6-73d4602258f0
2026-06-02T07:34:52.9664498Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2026-06-02T07:34:52.9671325Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2026-06-02T07:34:52.9679156Z ##[debug]loading INPUT_CONNECTION
2026-06-02T07:34:52.9687695Z ##[debug]loading INPUT_DEFAULTVERSIONTYPE
2026-06-02T07:34:52.9813928Z ##[debug]loading INPUT_DOWNLOADPATH
2026-06-02T07:34:52.9826231Z ##[debug]loading INPUT_ITEMPATTERN
2026-06-02T07:34:52.9848427Z ##[debug]loading INPUT_USERREPOSITORY
2026-06-02T07:34:52.9884736Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2026-06-02T07:34:52.9888941Z ##[debug]loaded 13
2026-06-02T07:34:52.9995243Z ##[debug]Agent.ProxyUrl=undefined
2026-06-02T07:34:53.0087074Z ##[debug]Agent.CAInfo=undefined
2026-06-02T07:34:53.0090940Z ##[debug]Agent.ClientCert=undefined
2026-06-02T07:34:53.0116248Z ##[debug]Agent.SkipCertValidation=undefined
2026-06-02T07:34:53.0119557Z ##[debug]check path : D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\artifact-engine\lib.json
2026-06-02T07:34:53.0154672Z ##[debug]adding resource file: D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\artifact-engine\lib.json
2026-06-02T07:34:53.0168934Z ##[debug]system.culture=en-US
2026-06-02T07:34:53.1887105Z ##[debug]Agent environment resources - Disk: D:\ Available 74738.86 MB out of 76798.00 MB, Memory: Used 2557.00 MB out of 8190.00 MB, CPU: Usage 100.00%
2026-06-02T07:34:53.3824233Z ##[debug]check path : D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\task.json
2026-06-02T07:34:53.3931964Z D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\artifact-engine\Engine\artifactEngine.js:165
2026-06-02T07:34:53.3933809Z ##[debug]adding resource file: D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\task.json
2026-06-02T07:34:53.4006575Z     throw err;
2026-06-02T07:34:53.4007436Z ##[debug]system.culture=en-US
2026-06-02T07:34:53.4043962Z     ^
2026-06-02T07:34:53.4044975Z ##[debug]connection=3462186f-1753-4faa-8ae6-73d4602258f0
2026-06-02T07:34:53.4072773Z 
2026-06-02T07:34:53.4073698Z ##[debug]userRepository=skyline.Dataminer.Utils.Standalone-DB-Utility
2026-06-02T07:34:53.4097616Z Error: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
2026-06-02T07:34:53.4098599Z ##[debug]defaultVersionType=latest
2026-06-02T07:34:53.4112472Z     at Object.getEndpointAuthorizationParameter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\azure-pipelines-task-lib\task.js:487:15)
2026-06-02T07:34:53.4114962Z ##[debug]itemPattern=Skyline.DbTools.exe
2026-06-02T07:34:53.4124769Z     at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:139:28
2026-06-02T07:34:53.4125678Z ##[debug]downloadPath=D:\a\1\s
2026-06-02T07:34:53.4155650Z     at Generator.next ()
2026-06-02T07:34:53.4156509Z ##[debug]version=undefined
2026-06-02T07:34:53.4188928Z     at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:8:71
2026-06-02T07:34:53.4189885Z ##[debug]task result: Failed
2026-06-02T07:34:53.4212509Z     at new Promise ()
2026-06-02T07:34:53.4233124Z ##[error]Unhandled: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
2026-06-02T07:34:53.4241262Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=27db5883-81fa-4275-84b8-642b116c1cda;]Unhandled: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
2026-06-02T07:34:53.4243366Z     at __awaiter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:4:12)
2026-06-02T07:34:53.4250264Z ##[debug]Processed: ##vso[task.complete result=Failed;]Unhandled: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
2026-06-02T07:34:53.4251400Z     at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:56
2026-06-02T07:34:53.4256094Z ##[error]Error: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
    at Object.getEndpointAuthorizationParameter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\azure-pipelines-task-lib\task.js:487:15)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:139:28
    at Generator.next ()
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:8:71
    at new Promise ()
    at __awaiter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:4:12)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:56
    at new Promise ()
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:23
    at Generator.next ()
2026-06-02T07:34:53.4260558Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=27db5883-81fa-4275-84b8-642b116c1cda;]Error: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
    at Object.getEndpointAuthorizationParameter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\azure-pipelines-task-lib\task.js:487:15)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:139:28
    at Generator.next ()
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:8:71
    at new Promise ()
    at __awaiter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:4:12)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:56
    at new Promise ()
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:23
    at Generator.next ()
2026-06-02T07:34:53.4262920Z ##[debug]SYSTEM.HOSTTYPE=build
2026-06-02T07:34:53.4264003Z ##[debug]BUILD.DEFINITIONNAME=DataMiner Installer Pipeline
2026-06-02T07:34:53.4265545Z ##[debug]BUILD.BUILDID=128908
2026-06-02T07:34:53.4266685Z ##[debug]SYSTEM.TEAMFOUNDATIONSERVERURI=https://dev.azure.com/skyline-cloud/
2026-06-02T07:34:53.4267636Z ##[debug]SYSTEM.TEAMPROJECT=DataMiner As A Service
2026-06-02T07:34:53.4268505Z ##[debug]BUILD.BUILDID=128908
2026-06-02T07:34:53.4269366Z ##[debug]TASK.DISPLAYNAME=Download DbTools.exe
2026-06-02T07:34:53.4270251Z ##[debug]SYSTEM.JOBID=b52e2277-92b7-5aca-1722-2d0a6c3781e5
2026-06-02T07:34:53.4271119Z ##[debug]AGENT.VERSION=4.273.0
2026-06-02T07:34:53.4271978Z ##[debug]AGENT.OS=Windows_NT
2026-06-02T07:34:53.4272842Z ##[debug]AGENT.NAME=Azure Pipelines 2
2026-06-02T07:34:53.4410553Z ##[debug]Processed: ##vso[telemetry.publish area=artifact-engine;feature=reliability]{"hostType":"build","definitionName":"[NonEmail:DataMiner Installer Pipeline]","processId":"128908","processUrl":"https://dev.azure.com/skyline-cloud/DataMiner As A Service/_build?buildId=128908","taskDisplayName":"Download DbTools.exe","jobid":"b52e2277-92b7-5aca-1722-2d0a6c3781e5","agentVersion":"4.273.0","agentOS":"Windows_NT","agentName":"Azure Pipelines 2","version":"1.5.5","issueType":"uncaughtException","errorMessage":"{\"stack\":\"Error: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0\\n    at Object.getEndpointAuthorizationParameter (D:\\\\a\\\\_tasks\\\\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\\\\0.269.0\\\\node_modules\\\\azure-pipelines-task-lib\\\\task.js:487:15)\\n    at D:\\\\a\\\\_tasks\\\\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\\\\0.269.0\\\\main.js:139:28\\n    at Generator.next ()\\n    at D:\\\\a\\\\_tasks\\\\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\\\\0.269.0\\\\main.js:8:71\\n    at new Promise ()\\n    at __awaiter (D:\\\\a\\\\_tasks\\\\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\\\\0.269.0\\\\main.js:4:12)\\n    at D:\\\\a\\\\_tasks\\\\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\\\\0.269.0\\\\main.js:128:56\\n    at new Promise ()\\n    at D:\\\\a\\\\_tasks\\\\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\\\\0.269.0\\\\main.js:128:23\\n    at Generator.next ()\",\"message\":\"Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0\"}"}
2026-06-02T07:34:53.4417143Z ##[error]artifact-engine: unhandled exception Error: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
    at Object.getEndpointAuthorizationParameter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\azure-pipelines-task-lib\task.js:487:15)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:139:28
    at Generator.next ()
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:8:71
    at new Promise ()
    at __awaiter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:4:12)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:56
    at new Promise ()
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:23
    at Generator.next ()
2026-06-02T07:34:53.4419962Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=27db5883-81fa-4275-84b8-642b116c1cda;]artifact-engine: unhandled exception Error: Endpoint auth data not present: 3462186f-1753-4faa-8ae6-73d4602258f0
    at Object.getEndpointAuthorizationParameter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\node_modules\azure-pipelines-task-lib\task.js:487:15)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:139:28
    at Generator.next ()
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:8:71
    at new Promise ()
    at __awaiter (D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:4:12)
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:56
    at new Promise ()
    at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:23
    at Generator.next ()
2026-06-02T07:34:53.4422700Z     at new Promise ()
2026-06-02T07:34:53.4424843Z     at D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js:128:23
2026-06-02T07:34:53.4425484Z     at Generator.next ()
2026-06-02T07:34:53.4425709Z 
2026-06-02T07:34:53.4426172Z Node.js v24.15.0
2026-06-02T07:34:53.4638776Z ##[error]Exit code 7 returned from process: file name 'C:\actions-runner\cached\4.273.0\externals\node24\bin\node.exe', arguments '"D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js"'.
2026-06-02T07:34:53.4648668Z ##[debug]Microsoft.VisualStudio.Services.Agent.Util.ProcessExitCodeException: Exit code 7 returned from process: file name 'C:\actions-runner\cached\4.273.0\externals\node24\bin\node.exe', arguments '"D:\a\_tasks\DownloadGitHubRelease_263abc27-4582-4174-8789-af599697778e\0.269.0\main.js"'.
   at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in D:\a\_work\1\s\src\Agent.Sdk\ProcessInvoker.cs:line 399
   at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in D:\a\_work\1\s\src\Microsoft.VisualStudio.Services.Agent\ProcessInvoker.cs:line 329
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, Boolean continueAfterCancelProcessTreeKillAttempt, TimeSpan sigintTimeout, TimeSpan sigtermTimeout, Boolean useGracefulShutdown, CancellationToken cancellationToken) in D:\a\_work\1\s\src\Agent.Worker\Handlers\StepHost.cs:line 86
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.RunAsync() in D:\a\_work\1\s\src\Agent.Worker\Handlers\NodeHandler.cs:line 337
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsyncInternal() in D:\a\_work\1\s\src\Agent.Worker\TaskRunner.cs:line 477
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync() in D:\a\_work\1\s\src\Agent.Worker\TaskRunner.cs:line 81
   at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken) in D:\a\_work\1\s\src\Agent.Worker\StepsRunner.cs:line 369
2026-06-02T07:34:53.4654990Z ##[section]Finishing: Download DbTools.exe
] 

Repro steps

Step 1: create a serviceConnection through a github app (AzurePipeline will do)
Step 2: create a task with the following info
task: DownloadGitHubRelease@0
        displayName: Test
        inputs:
          connection: $(svcGithubConnection)
          userRepository: '<user repo for test>'
          defaultVersionType: 'latest'
          downloadPath: '$(System.DefaultWorkingDirectory)'
Step 3 run a pipeline with said task

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions