diff --git a/.github/workflows/sycl-bandit.yml b/.github/workflows/sycl-bandit.yml index 3a70e662f3c74..75d037a973e64 100644 --- a/.github/workflows/sycl-bandit.yml +++ b/.github/workflows/sycl-bandit.yml @@ -2,9 +2,16 @@ name: Scan Python code with Bandit on: workflow_dispatch: - schedule: - - cron: '0 3 * * *' - + pull_request: + branches: + - sycl + paths: + - '**/*.py' + push: + branches: + - sycl + paths: + - '**/*.py' permissions: contents: read