fix #690
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| name: Secret Leaks | |
| permissions: | |
| contents: read | |
| jobs: | |
| trufflehog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Secret Scanning | |
| uses: trufflesecurity/trufflehog@d411fff7b8879a62509f3fa98c07f247ac089a51 # main | |
| with: | |
| # Always scan a DIFF, never the whole history. The action derives its | |
| # base from `github.event.before`, which is all-zeros on the push that | |
| # CREATES a branch — trufflehog then walks every commit ever made | |
| # (415k chunks / 230 MB, ~2 min) instead of the pushed changes. Fall | |
| # back to the default branch in that case so a new branch is scanned | |
| # against main. | |
| base: ${{ github.event.before != '0000000000000000000000000000000000000000' && github.event.before || github.event.repository.default_branch }} | |
| # Lob's detector matches `(live|test)_<35 hex>` and "verifies" a hit by | |
| # POSTing to api.lob.com, where a 422 counts as a valid key — that | |
| # endpoint 422s on a bad body whatever the key, so every candidate came | |
| # back "verified" (397 of them on a full-history scan, all false). | |
| extra_args: --results=verified,unknown --exclude-detectors=lob |