fix: clean windows onboarding (reviewed + fixed) #441
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install gitleaks | |
| run: | | |
| set -euo pipefail | |
| VERSION="8.18.4" | |
| ARCHIVE="gitleaks_${VERSION}_linux_x64.tar.gz" | |
| URL="https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}/${ARCHIVE}" | |
| curl -sSL "$URL" -o "/tmp/${ARCHIVE}" | |
| tar -xzf "/tmp/${ARCHIVE}" -C /tmp | |
| sudo mv /tmp/gitleaks /usr/local/bin/gitleaks | |
| gitleaks version | |
| - name: Scan (full history) | |
| run: | | |
| set -euo pipefail | |
| gitleaks detect --redact --no-banner --log-opts="--all" |