diff --git a/.github/workflows/rl-scanner.yml b/.github/workflows/rl-scanner.yml index 9a50e72a..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: @@ -21,6 +23,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true - name: Configure Python uses: actions/setup-python@v5