Skip to content

Commit

Permalink
[CI] Run external CredScan in Security tools pipeline (Azure#26054)
Browse files Browse the repository at this point in the history
* Run external CredScan in Security tools pipeline

* remove auth part from external CredScan
  • Loading branch information
YanaXu authored Sep 10, 2024
1 parent 945649d commit 64f9db2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .azure-pipelines/security-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ jobs:
outputFormat: sarif
scanFolder: SecurityTmp
suppressionsFile: tools/SecurityTools/CredScanSuppressions.json
- task: PowerShell@2
displayName: Run external CredScan
env:
GDN_CREDSCAN_OUTPUTTYPE: sarif
Scan_Folder: SecurityTmp
GDN_CREDSCAN_SUPPRESSIONSPATH: tools/SecurityTools/CredScanSuppressions.json
GDN_CREDSCAN_SUPPRESSASERROR: False
inputs:
targetType: inline
script: |
nuget.exe install Microsoft.Security.DevOps.Cli
$toolsPath = Join-Path ("Microsoft.Security.DevOps.Cli*" | Resolve-Path) tools
$env:Path = "$toolsPath;$env:Path"
$env:GDN_CREDSCAN_TARGETDIRECTORY = (Resolve-Path $env:Scan_Folder).Path
guardian init -f
guardian run -t CredScan
- task: PowerShell@2
displayName: Generate a response text file for BinSkim
inputs:
Expand Down

0 comments on commit 64f9db2

Please sign in to comment.