Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyan99 committed Nov 11, 2024
1 parent a60fe6a commit 281191a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions eng/tox/run_bandit.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@
args = parser.parse_args()
package_name = os.path.basename(os.path.abspath(args.target_package))

# if in_ci():
# if not is_check_enabled(args.target_package, "bandit"):
# logging.info(
# f"Package {package_name} opts-out of bandit check."
# )
# exit(0)
if in_ci():
if not is_check_enabled(args.target_package, "bandit"):
logging.error("Bandit is disabled.")
exit(1)

try:
check_call(
Expand Down

0 comments on commit 281191a

Please sign in to comment.