AzureSignTool icon indicating copy to clipboard operation
AzureSignTool copied to clipboard

Azure devops pipeines - Globbing not working

Open greengumby opened this issue 1 year ago • 5 comments

Hi I am calling azuresigntool through command line on a hosted agent version : 6.0.0 azuresigntool sign -kvu **** -kvc ***** -kvi **** -kvs ***** --azure-key-vault-tenant-id **** -tr http://timestamp.globalsign.com/tsa/advanced -td sha256 -v "D:\a\1\a*.exe"

and the result is "At least one file must be specified to sign."

I can confirm that the file exists and if I fully qualify the file path and name than the signing works as intended. However I cannot do this when the exe name is dynamic.

I am also tried "D:***.exe" with the same result.

Cheers

greengumby avatar Nov 15 '24 07:11 greengumby

I am also observing this issue

elksson avatar Dec 02 '24 19:12 elksson

I guess this is not related to pipelines - the question is whether AzureSignTool should support signing files based on a file mask - i.e. sign all files matching MyPath\*.dll

Personally, I see that as a great feature if you include other signable files that should be signed or if a project outputs more than one binary file (for example .net 9 console apps produce both a .dll and a .exe)

bstordrup avatar Dec 10 '24 15:12 bstordrup

It should support globbing like that. Let me try to reproduce it.

vcsjones avatar Dec 10 '24 16:12 vcsjones

Seeing the same here on 6.0.1

Probably related: https://github.com/dotnet/runtime/issues/62333 (Azure Pipeline always references with absolute path)

carkar avatar Mar 13 '25 00:03 carkar

Yes, the issue occurs as soon as you use a drive letter for the file you want to sign. I tried:

c:\...
\\?\C:\...
\\localhost\C$\...

In all the above cases it fails. If I use a relative path that goes back to the root of the drive it works fine.

manu-st avatar Apr 03 '25 03:04 manu-st