Skip to content

Commit 608289b

Browse files
committed
chore(build): guard gitleaks license and pin action SHA
1 parent e4b42cf commit 608289b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/gitleaks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ on:
99
jobs:
1010
gitleaks:
1111
runs-on: ubuntu-latest
12+
env:
13+
HAS_GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE != '' }}
1214
steps:
1315
- uses: actions/checkout@v4
1416
with:
1517
fetch-depth: 0
1618
- uses: gitleaks/gitleaks-action@83d9cd684c87d95d656c1458ef04895a7f1cbd8e
17-
if: ${{ secrets.GITLEAKS_LICENSE != '' }}
19+
if: ${{ env.HAS_GITLEAKS_LICENSE == 'true' }}
1820
env:
1921
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

0 commit comments

Comments
 (0)