From 0bcfe83849a32298baa77b6d9d62a86330203163 Mon Sep 17 00:00:00 2001 From: Kunal Dawar Date: Tue, 22 Oct 2024 13:46:44 +0530 Subject: [PATCH] Fix pipeline --- .github/workflows/rl-scanner.yml | 5 +++++ 1 file changed, 5 insertions(+) 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