forked from PowerShell/Compliance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEsrpScan.yml
29 lines (25 loc) · 844 Bytes
/
EsrpScan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
parameters:
- name: "scanPath"
default: "$(Pipeline.Workspace)"
- name: "pattern"
default: "*.dll,*.exe"
- name: "scanningService"
default: "pwshEsrpScanning"
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core sdk 2.x for ESRP'
inputs:
version: 2.x
- pwsh: |
Write-Verbose -Verbose "scanPath = '${{ parameters.scanPath }}'"
Write-Verbose -Verbose "pattern = '${{ parameters.pattern }}'"
Write-Verbose -Verbose "scanningService = '${{ parameters.scanningService }}'"
displayName: Log parameters
- task: SFP.build-tasks.custom-build-task-2.EsrpMalwareScanning@1
displayName: 'Malware Scanning'
inputs:
ConnectedServiceName: ${{ parameters.scanningService }}
FolderPath: ${{ parameters.scanPath }}
Pattern: ${{ parameters.pattern }}
UseMinimatch: true
SessionTimeout: 30