我在使用下载安全文件任务时收到错误: ##[错误]错误:无法获取本地颁发者证书
执行 powershell 脚本的普通管道运行没有问题。
我尝试下载带有 pdf 和证书的安全文件并得到相同的错误
例如:
steps:
- task: DownloadSecureFile@1
displayName: 'Download File'
inputs:
secureFile: SelfSigned.pfx
steps:
- task: DownloadSecureFile@1
displayName: 'Download File'
inputs:
secureFile: 'test.pdf'
我尝试过以下方法
这是一个已知问题。您可以参考以下票证并运行PowerShell脚本来解决该问题。