File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 52
52
outputFormat : sarif
53
53
scanFolder : SecurityTmp
54
54
suppressionsFile : tools/SecurityTools/CredScanSuppressions.json
55
+ - task : PowerShell@2
56
+ displayName : Run external CredScan
57
+ env :
58
+ GDN_CREDSCAN_OUTPUTTYPE : sarif
59
+ Scan_Folder : SecurityTmp
60
+ GDN_CREDSCAN_SUPPRESSIONSPATH : tools/SecurityTools/CredScanSuppressions.json
61
+ GDN_CREDSCAN_SUPPRESSASERROR : False
62
+ inputs :
63
+ targetType : inline
64
+ script : |
65
+ nuget.exe install Microsoft.Security.DevOps.Cli
66
+ $toolsPath = Join-Path ("Microsoft.Security.DevOps.Cli*" | Resolve-Path) tools
67
+ $env:Path = "$toolsPath;$env:Path"
68
+ $env:GDN_CREDSCAN_TARGETDIRECTORY = (Resolve-Path $env:Scan_Folder).Path
69
+ guardian init -f
70
+ guardian run -t CredScan
71
+
55
72
- task : PowerShell@2
56
73
displayName : Generate a response text file for BinSkim
57
74
inputs :
You can’t perform that action at this time.
0 commit comments