From 49114b20c4a441b43528ac0dba4b8825fe8c3193 Mon Sep 17 00:00:00 2001 From: Steven Sklar Date: Tue, 10 Mar 2026 12:03:44 -0400 Subject: [PATCH 1/4] Add Gitleaks secret scanning workflow --- .github/workflows/gitleaks.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/gitleaks.yml diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml new file mode 100644 index 0000000..85e1b17 --- /dev/null +++ b/.github/workflows/gitleaks.yml @@ -0,0 +1,19 @@ +name: Gitleaks + +on: + pull_request: + push: + branches: + - main + +jobs: + gitleaks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} From f571be980146d5ee161627601019962e7871b525 Mon Sep 17 00:00:00 2001 From: Steven Sklar Date: Mon, 20 Apr 2026 14:08:04 -0400 Subject: [PATCH 2/4] chore(build): guard gitleaks license and pin action SHA --- .github/workflows/gitleaks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 85e1b17..7b03514 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -13,7 +13,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: gitleaks/gitleaks-action@v2 + - uses: gitleaks/gitleaks-action@83d9cd684c87d95d656c1458ef04895a7f1cbd8e + if: ${{ secrets.GITLEAKS_LICENSE != '' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} From 6803d5ea88194fc74d520fc27cb6671b1d3265e1 Mon Sep 17 00:00:00 2001 From: Steven Sklar Date: Mon, 20 Apr 2026 14:15:40 -0400 Subject: [PATCH 3/4] chore(build): guard gitleaks license and pin action SHA --- .github/workflows/gitleaks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 7b03514..40e997e 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -9,12 +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@83d9cd684c87d95d656c1458ef04895a7f1cbd8e - if: ${{ secrets.GITLEAKS_LICENSE != '' }} + if: ${{ env.HAS_GITLEAKS_LICENSE == 'true' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} From 1c8c5fb06e91a720d296dfe589abecb41669978f Mon Sep 17 00:00:00 2001 From: Steven Sklar Date: Mon, 20 Apr 2026 14:39:41 -0400 Subject: [PATCH 4/4] chore(build): guard gitleaks license and pin action SHA --- .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 40e997e..0c023d3 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: gitleaks/gitleaks-action@83d9cd684c87d95d656c1458ef04895a7f1cbd8e + - uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 if: ${{ env.HAS_GITLEAKS_LICENSE == 'true' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}