Skip to content

Commit f08b111

Browse files
authored
chore(build): guard gitleaks license and pin action SHA (#23)
* chore(build): guard gitleaks license and pin action SHA * chore(build): guard gitleaks license and pin action SHA * chore(build): guard gitleaks license and pin action SHA
1 parent 5a366f0 commit f08b111

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/gitleaks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +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
16-
- uses: gitleaks/gitleaks-action@v2
18+
- uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7
19+
if: ${{ env.HAS_GITLEAKS_LICENSE == 'true' }}
1720
env:
1821
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1922
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

0 commit comments

Comments
 (0)