Skip to content

fix tests

fix tests #40

Workflow file for this run

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

Check failure on line 20 in .github/workflows/security.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/security.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
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