dotnet / dotnet/sign

Attempting to use a file list with trusted-signing returns error

Open
#768 5 comments 2 reactions 0 assignees View on GitHub
Priority:3
Dominant language
C#
Stars
581
Forks
116
Avg merge
1d 2h
Merged PRs (30d)
8

Description

I'm trying to use a filelist to skip when signing the contents of a directory using trusted-signing

**Repro steps**

The following command is being executed from the directory containing the target files for signing. If I remove "-fl filelist.txt" and substitute "*.exe" the command completes successfully

"{path}\sign.exe code trusted-signing -tse "{path to endpoint}" -tsa "{trusted-Signing-Account}" -tscp {Cert Profile} -b {WorkingDir} -fl filelist.txt -v debug

Content of filelist.txt
```
**/*.exe
!**/Don'tSignMe.exe
```

**Expected behavior**
To sign all *.exe files in current working directory with one exclusion

**Actual behavior**
Program returns "Required argument missing for command: 'trusted-signing'."

If I add a wildcard after the filelist as in the example below, all files will get signed and the filelist will be ignored.

"{path}\sign.exe code trusted-signing -tse "{path to endpoint}" -tsa "{trusted-Signing-Account}" -tscp {Cert Profile} -b {WorkingDir} -fl filelist.txt * -v debug

**Additional context**
Version 0.9.1-beta.24469.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.