fix tests #40
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
| name: Security | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| jobs: | ||
| secret-scan: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Install gitleaks CLI (OSS) | ||
| run: | | ||
| set -euo pipefail | ||
| VERSION="$(python - <<'PY' | ||
| import json, urllib.request | ||
| data = json.load(urllib.request.urlopen("https://api.github.com/repos/gitleaks/gitleaks/releases/latest")) | ||
| print(data["tag_name"].lstrip("v")) | ||
| PY | ||
| )" | ||
| curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}/gitleaks_${VERSION}_linux_x64.tar.gz" -o gitleaks.tar.gz | ||
| tar -xzf gitleaks.tar.gz gitleaks | ||
| install -m 0755 gitleaks /usr/local/bin/gitleaks | ||
| gitleaks version | ||
| - name: Gitleaks scan | ||
| run: gitleaks detect --source . --no-git --redact --verbose | ||