Skip to content

Commit 367865b

Browse files
authored
Suppress BinSkim BA2008 warning for llvm-mca.exe and FileCheck.exe (#119376)
* Suppress BinSkim BA2008 warning for llvm-mca.exe and FileCheck.exe. * Add a comment on why external libraries are excluded from binskim scanning.
1 parent 4076cf5 commit 367865b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eng/common/sdl/configure-sdl-tool.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ try {
9595
if ($targetDirectory) {
9696
# Binskim crashes due to specific PDBs. GitHub issue: https://github.com/microsoft/binskim/issues/924.
9797
# We are excluding all `_.pdb` files from the scan.
98-
$tool.Args += "`"Target < $TargetDirectory\**;-:file|$TargetDirectory\**\_.pdb`""
98+
# SuperfileCheck uses two external LLVM libraries (llvm-mca.exe and FileCheck.exe) that we don't build. Excluding them to supporess BA2008.
99+
$tool.Args += "`"Target < $TargetDirectory\**;-:file|$TargetDirectory\**\_.pdb;-:file|$TargetDirectory\**\llvm-mca.exe;-:file|$TargetDirectory\**\FileCheck.exe`""
99100
}
100101
$tool.Args += $BinskimAdditionalRunConfigParams
101102
}

0 commit comments

Comments
 (0)