Skip to content

Commit a1ae3c6

Browse files
sklarsaemrberk
andauthored
chore(build): guard gitleaks license and pin action SHA (#555)
* 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 * submodule --------- Co-authored-by: emrberk <emreberk5699@gmail.com>
1 parent 9cdbfdf commit a1ae3c6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/gitleaks.yml

Lines changed: 4 additions & 2 deletions
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
16-
- uses: gitleaks/gitleaks-action@v2
17-
if: ${{ secrets.GITLEAKS_LICENSE != '' }}
18+
- uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7
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)