diff --git a/.github/workflows/rl-scanner.yml b/.github/workflows/rl-scanner.yml index 06fd47f9..f58163d4 100644 --- a/.github/workflows/rl-scanner.yml +++ b/.github/workflows/rl-scanner.yml @@ -13,6 +13,8 @@ on: jobs: checkout-build-scan-only: + if: github.event_name == 'workflow_dispatch' || + (github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'release/')) runs-on: ubuntu-latest permissions: