From 20ead77da72299cb21fc05ecdf856a84355bf51d Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Tue, 27 Sep 2022 10:57:08 -0300 Subject: [PATCH] chore: gitleaks only when license present Signed-off-by: Carlos A Becker --- .github/workflows/gitleaks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 != '' }}