File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,11 +45,15 @@ jobs:
4545 with :
4646 fetch-depth : 0
4747
48+ - name : Install Gitleaks
49+ run : |
50+ GITLEAKS_VERSION=8.29.0
51+ curl -sSL https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz \
52+ | tar -xz gitleaks
53+ sudo mv gitleaks /usr/local/bin/gitleaks
54+
4855 - name : Run Gitleaks
49- uses : gitleaks/gitleaks-action@v2
50- env :
51- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52- GITLEAKS_LICENSE : ${{ secrets.GITLEAKS_LICENSE }}
56+ run : gitleaks detect --source . --config .gitleaks.toml --no-banner
5357
5458 - name : Set up Python
5559 uses : actions/setup-python@v5
Original file line number Diff line number Diff line change @@ -15,3 +15,7 @@ paths = [
1515 ''' \.gitleaks\.toml$''' ,
1616 ''' \.secrets\.baseline$''' , # used for detect-secrets
1717]
18+ regexes = [
19+ ''' "image/png": ".*"''' , # Ignores base64 image strings in JSON
20+ ''' "hash": ".*"''' , # Ignores hashes in metadata
21+ ]
You can’t perform that action at this time.
0 commit comments