diff --git a/eng/pipelines/templates/steps/run_bandit.yml b/eng/pipelines/templates/steps/run_bandit.yml index a369f24d5acf..02e6c5e8cb1d 100644 --- a/eng/pipelines/templates/steps/run_bandit.yml +++ b/eng/pipelines/templates/steps/run_bandit.yml @@ -15,6 +15,6 @@ steps: --service="${{ parameters.ServiceDirectory }}" --toxenv="bandit" --disablecov - --filter-type="Bandit" + --filter-type="Omit_management" env: ${{ parameters.EnvVars }} condition: and(succeededOrFailed(), ne(variables['Skip.Bandit'],'true')) \ No newline at end of file diff --git a/scripts/devops_tasks/common_tasks.py b/scripts/devops_tasks/common_tasks.py index d5129b49a200..932e9b801d05 100644 --- a/scripts/devops_tasks/common_tasks.py +++ b/scripts/devops_tasks/common_tasks.py @@ -59,10 +59,6 @@ "azure-mgmt-core", ] -BANDIT_EXCLUDED_PACKAGES = [ - "azure-servicebus", -] - omit_regression = ( lambda x: "nspkg" not in x and "mgmt" not in x @@ -74,7 +70,7 @@ omit_build = lambda x: x # Dummy lambda to match omit type lambda_filter_azure_pkg = lambda x: x.startswith("azure") and "-nspkg" not in x omit_mgmt = lambda x: "mgmt" not in x or os.path.basename(x) in MANAGEMENT_PACKAGES_FILTER_EXCLUSIONS -omit_bandit = lambda x: not(os.path.basename(x) in BANDIT_EXCLUDED_PACKAGES or "mgmt" in x) + # dict of filter type and filter function omit_funct_dict = { @@ -82,7 +78,6 @@ "Docs": omit_docs, "Regression": omit_regression, "Omit_management": omit_mgmt, - "Bandit": omit_bandit, } def log_file(file_location, is_error=False): diff --git a/scripts/devops_tasks/setup_execute_tests.py b/scripts/devops_tasks/setup_execute_tests.py index 0e2e6cc1921f..a099f98fc122 100644 --- a/scripts/devops_tasks/setup_execute_tests.py +++ b/scripts/devops_tasks/setup_execute_tests.py @@ -280,7 +280,7 @@ def execute_global_install_and_test( dest="filter_type", default='Build', help="Filter type to identify eligible packages. for e.g. packages filtered in Build can pass filter type as Build,", - choices=['Build', "Docs", "Regression", "Omit_management", "Bandit"] + choices=['Build', "Docs", "Regression", "Omit_management"] )