Azure / trusted-signing-action

MIT License
21 stars 8 forks source link

Add `file` option to just sign one single known filename #9

Open sudara opened 2 months ago

sudara commented 2 months ago

The example has a somewhat advanced usage of files-folder and files-folder-filter which makes the assumption people are signing multiple files (but not all) within a directory.

It would be great if there was a file option for doing the simple thing of signing a single file.

Thanks!!

japarson commented 2 months ago

We can add a new parameter files: that is a comma separated list of relative or absolute file paths. This would also support the scenario of just 1 file.

@sudara What do you think?

sudara commented 2 months ago

Sure! That would be sweet...

rwsdwatson commented 2 months ago

This would be great.

riverar commented 6 days ago

I'd like this too. The current method ends up signing a bunch of ancillary .NET files for self-contained applications, without a way to easily filter it. (I'm using the catalog as a workaround for now.)

It should still support recursive operations too.

Configuration:

files-folder: my\files
files-folder-recurse: true
files:
- Foo.exe
- Bar.exe

Should sign:

my\files\x86\Foo.exe
my\files\x64\Foo.exe
my\files\arm64\Foo.exe
my\files\x86\Bar.exe
my\files\x64\Bar.exe
my\files\arm64\Bar.exe