From b44fa4cf767230c486b2391aee6533a22d79a7cf Mon Sep 17 00:00:00 2001 From: Steven Sklar Date: Tue, 21 Apr 2026 11:32:49 -0400 Subject: [PATCH] chore(build): fix gitleaks workflow --- .github/workflows/gitleaks.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 5fa6466..6b65310 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -9,11 +9,14 @@ on: jobs: gitleaks: runs-on: ubuntu-latest + env: + HAS_GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE != '' }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: gitleaks/gitleaks-action@v2 + - uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 + if: ${{ env.HAS_GITLEAKS_LICENSE == 'true' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}