diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index caf42e78f5c..624ee3e0ff2 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -13,7 +13,6 @@ permissions: jobs: gitleaks: runs-on: ubuntu-latest - if: ${{ github.event.pusher.name != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }} steps: - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3 with: @@ -22,3 +21,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} + if: ${{ env.GITLEAKS_LICENSE != '' }}