Component Gov round 7 (#21051)

### Description
ignoreDirectories does not recursively include sub folders like we
thought it would. We need to add additional sub folders.



### Motivation and Context
Fix CG :
1.
https://aiinfra.visualstudio.com/Lotus/_componentGovernance/218239/alert/11474679?typeId=25427568
2.
https://aiinfra.visualstudio.com/Lotus/_componentGovernance/218239/alert/11475140?typeId=25421034&pipelinesTrackingFilter=0
This commit is contained in:
Jian Chen 2024-06-19 11:07:02 -07:00 committed by GitHub
parent 769d379c63
commit 6a0d64e65c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,17 +20,20 @@ steps:
inputs:
# ignore unit tests in emscripten. emscripten unit tests are not used in onnxruntime build
# ignore onnx third_party directory. onnx third_party directory is not responsible for onnxruntime build
# because sometime there are multiple repo is checked out in the same pipeline, we also need to add the repo name, such as onnxruntime/ to the ignoreDirectories
# ignore pybind11 third_party directory. pybind11 third_party directory is not responsible for onnxruntime build
# ignore pybind11 tests directory. pybind11 tests directory is not responsible for onnxruntime build
# ignore onnxruntime-extensions directory. onnxruntime-extensions directory is not responsible for onnxruntime build
# ignore react_native e2e node_modules directory. react_native e2e node_modules directory is generated by react_native e2e tests
# ignore github directory. github directory is used for github actions, not for onnxruntime package
# ignore js node_modules directory. js node_modules directory is generated by js tests
# ignore onnxruntime-inference-examples directory. onnxruntime-inference-examples directory is used for inference examples, not for onnxruntime package
# ignore BinariesDirectory. BinariesDirectory is used for build output, not for onnxruntime package
ignoreDirectories:
'$(Build.Repository.LocalPath)/cmake/external/emsdk/upstream/emscripten/tests,
$(Build.Repository.LocalPath)/cmake/external/onnx/third_party/benchmark,
$(Build.Repository.LocalPath)/cmake/external/onnx/third_party/pybind11,
$(Build.Repository.LocalPath)/cmake/external/onnx/third_party/pybind11/tests,
$(Build.Repository.LocalPath)/cmake/external/onnxruntime-extensions,
$(Build.Repository.LocalPath)/js/react_native/e2e/node_modules,
$(Build.Repository.LocalPath)/js/node_modules,
$(Build.SourcesDirectory)/onnxruntime-inference-examples,
$(Build.BinariesDirectory)'