diff --git a/tools/ci_build/github/azure-pipelines/templates/component-governance-component-detection-steps.yml b/tools/ci_build/github/azure-pipelines/templates/component-governance-component-detection-steps.yml index fcf579e7bf..7945de295f 100644 --- a/tools/ci_build/github/azure-pipelines/templates/component-governance-component-detection-steps.yml +++ b/tools/ci_build/github/azure-pipelines/templates/component-governance-component-detection-steps.yml @@ -24,9 +24,12 @@ steps: # 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 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, $(Build.Repository.LocalPath)/cmake/external/onnxruntime-extensions, $(Build.Repository.LocalPath)/js/react_native/e2e/node_modules, - $(Build.Repository.LocalPath)/tools/ci_build/github' \ No newline at end of file + $(Build.SourcesDirectory)/onnxruntime-inference-examples, + $(Build.BinariesDirectory)' \ No newline at end of file