Remove committed secrets and add gitleaks pre-commit + CI gates #15
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
| name: Gitleaks | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| gitleaks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Install gitleaks | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSfL https://github.com/gitleaks/gitleaks/releases/download/v8.24.3/gitleaks_8.24.3_linux_x64.tar.gz -o gitleaks.tar.gz | |
| tar -xzf gitleaks.tar.gz gitleaks | |
| sudo mv gitleaks /usr/local/bin/gitleaks | |
| rm gitleaks.tar.gz | |
| - name: Run gitleaks (working tree) | |
| run: gitleaks detect --no-git --redact --verbose |