Skip to content

Commit 64f9db2

Browse files
authored
[CI] Run external CredScan in Security tools pipeline (#26054)
* Run external CredScan in Security tools pipeline * remove auth part from external CredScan
1 parent 945649d commit 64f9db2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.azure-pipelines/security-tools.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,23 @@ jobs:
5252
outputFormat: sarif
5353
scanFolder: SecurityTmp
5454
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+
5572
- task: PowerShell@2
5673
displayName: Generate a response text file for BinSkim
5774
inputs:

0 commit comments

Comments
 (0)