From 0a10a3003abdfb4e1baebe894d012c3d5ee3cc66 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Wed, 22 May 2024 11:05:24 -0700 Subject: [PATCH] component-governance fix round 4 (#20754) ### Description ### Motivation and Context --- .../component-governance-component-detection-steps.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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