diff --git a/EsrpSign.yml b/EsrpSign.yml index 2b9934c..873a508 100644 --- a/EsrpSign.yml +++ b/EsrpSign.yml @@ -7,6 +7,8 @@ parameters: default: "CP-230012" - name: "pattern" default: "*.dll,*.exe" + - name: "useMinimatch" + default: "false" steps: - task: UseDotNet@2 @@ -50,10 +52,10 @@ steps: inputs: ConnectedServiceName: pwshSigning FolderPath: '${{ parameters.buildOutputPath }}' - UseMinimatch: false signConfigType: inlineSignParams inlineOperation: $(EsrpJson) Pattern: ${{ parameters.pattern }} + UseMinimatch: ${{ parameters.useMinimatch }} condition: and(and(and(succeeded(), eq(variables['Build.Reason'], 'Manual')), ne(variables['SkipSigning'], 'True')), ne(variables['SigningServer'], '')) timeoutInMinutes: 30 diff --git a/README.md b/README.md index 8a149b2..2e36e97 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,14 @@ Details can be found in the PowerShell Maintainers teams channel's Wiki tab. signOutputPath: $(signOutPath) # the certificate ID to use certificateId: "CP-230012" - # the file pattern to use, comma separated + # The file pattern to use + # If not using minimatch: comma separated, with * supported + # If using minimatch: newline separated, with !, **, and * supported. + # See link in the useMinimatch comments. pattern: '*.dll,*.psd1,*.psm1,*.ps1xml,*.mof' + # decides if the task should use minimatch for the pattern matching. + # https://github.com/isaacs/minimatch#features + useMinimatch: false ```