throwaway: secrets scan probe (card 74)
scan / scan (push) Failing after 5s

This commit is contained in:
Sausage Agent
2026-10-16 20:35:13 +00:00
parent c1f182d9b6
commit ff3aa3ef3d
+35 -6
View File
@@ -1,11 +1,40 @@
# Runs on the Nix runner on nexus (label `nixos`, host executor). # Throwaway secrets scan (card 74). Prints only file names / redacted findings.
name: ci name: scan
on: [push, pull_request] on: [push]
jobs: jobs:
check: scan:
runs-on: nixos runs-on: nixos
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: nix flake check with:
run: nix flake check -L --show-trace fetch-depth: 0
- name: all branches
run: git fetch origin '+refs/heads/*:refs/remotes/origin/*' && git branch -a && git rev-list --all | wc -l
- name: gitleaks (redacted)
run: nix run nixpkgs#gitleaks -- detect --source . --log-opts=--all --redact -v --no-banner || true
- name: pattern scan (file names only)
run: |
scan() {
echo "== $1"
git rev-list --all | xargs -n 20 git grep -lIE "$1" | awk -F: '{print $2}' | sort | uniq -c || true
}
scan 'BEGIN [A-Z ]*PRIVATE KEY'
scan 'sk-[A-Za-z0-9_-]{16,}'
scan 'syt_[A-Za-z0-9]+|mct_[A-Za-z0-9]+'
scan 'gh[pousr]_[A-Za-z0-9]{20,}'
scan '[Bb]earer [A-Za-z0-9._-]{16,}'
scan '(^|[^0-9a-f])[0-9a-f]{40}([^0-9a-f]|$)'
scan '[Aa]ccess_?[Tt]oken'
scan '[Pp]assw(or)?d'
scan '[Aa][Pp][Ii][_-]?[Kk][Ee][Yy]'
scan '[Tt]oken["'"'"' ]*[:=] *["'"'"'][A-Za-z0-9._-]{12,}'
scan '10\.0\.0\.'
scan 'nip\.io'
scan 'surma\.technology'
scan 'vpn\.'
scan 'containeruser'
scan 'vendors\.llm'
scan 'citadel|nexus'
echo "== all files ever"
git rev-list --all | xargs -n 20 git ls-tree -r --name-only | sort -u | wc -l