Communitygithub.com

repo-security-scan

Durchsucht ein Repository nach sicherheitskritischen Schwachstellen und erstellt einen Bericht. Verwenden Sie diese Fähigkeit, um eine Codebasis auf durchgesickerte Geheimnisse oder anfällige Abhängigkeiten zu prüfen, vor einer Veröffentlichung oder beim Einarbeiten in ein unbekanntes Repository.

Was ist repo-security-scan?

Diese Fähigkeit führt eine umfassende Sicherheitsüberprüfung eines Repositorys durch, indem sie zwei leistungsstarke Open-Source-Tools kombiniert: **gitleaks** zur Erkennung von durchgesickerten Geheimnissen (mit standardmäßiger Schwärzung in Protokollen) und **osv-scanner** zur Identifizierung anfälliger Abhängigkeiten durch Abgleich mit der OSV-Datenbank. Die Ausgabe erfolgt sowohl als menschenlesbarer Bericht (`report.md`) als auch als maschinenlesbare Zusammenfassung (`summary.json`), zusammen mit den Rohdaten beider Scanner für die weitere Analyse. Sie ist für die lokale Ausführung konzipiert, kann aber nicht den Quellcode hochladen – nur Abhängigkeitsmetadaten werden für die Schwachstellensuche über das Netzwerk abgefragt. Die Fähigkeit unterstützt plattformübergreifend macOS und Ubuntu, verwendet repolokale Konfigurationsdateien für Whitelists und gibt spezifische Exit-Codes für CI/CD-Pipelines (0 = keine Funde, 1 = Funde, 2 = Scanner-Fehler).

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/unisone/openclaw-skill-suite/tree/main/skills/repo-security-scan

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht repo-security-scan?

Durchsucht ein Ziel-Repository nach sicherheitskritischen Schwachstellen und erstellt einen Bericht.

Funktionsumfang (MVP)

  • Geheimnis-Scan mit gitleaks (lokaler Scan; Geheimnisse in Protokollen geschwärzt)
  • Abhängigkeits-Schwachstellenscan mit osv-scanner (gleicht Abhängigkeiten mit OSV ab)

Ausgaben:

  • report.md – menschenlesbare Zusammenfassung
  • summary.json – maschinenlesbare Zusammenfassung
  • Rohausgaben der Tools (gitleaks.json, osv.json) + Protokolle

Warum dieser Stack (Signal/Rauschen)

  • gitleaks: starke Standardeinstellungen, schnell, einfache Unterdrückung von Fehlalarmen über .gitleaks.toml / .gitleaksignore.
  • osv-scanner: präzise Abhängigkeits-Schwachstellenerkennung über OSV (breite Ökosystemunterstützung, im Allgemeinen weniger Rauschen als ökosystemspezifische „Audit“-Befehle).

(Weitere Scanner wie Semgrep/SAST und sprachspezifische Prüfer können später hinter einem expliziten --deep-Modus hinzugefügt werden, um laute CI-Fehler zu vermeiden.)

Sicherheit

  • Schreibgeschützter Scan von Dateien.
  • Lädt keinen Quellcode hoch.
  • gitleaks-Ausgabe wird geschwärzt (--redact) und der Bericht vermeidet das Drucken von Geheimnissen.
  • osv-scanner verwendet Netzwerkzugriff standardmäßig, um OSV abzufragen (und kann deps.dev für Paketmetadaten konsultieren). Es sendet Abhängigkeitsmetadaten, keinen Quellcode.

Verwendung

Lokal

Aus diesem Repository:

# Dieses Repository scannen und Ausgaben unter .repo-security-scan/out schreiben
bash scripts/repo-security-scan/scan.sh --repo .

# Ein anderes Repository scannen
bash scripts/repo-security-scan/scan.sh --repo /pfad/zum/ziel --out /tmp/repo-security-scan-out

# Den Bericht anzeigen
cat .repo-security-scan/out/report.md

Demo

bash scripts/demo.sh            # scannt dieses Repository
bash scripts/demo.sh /pfad/repo # scannt ein Ziel-Repository

Ausgaben

Im Ausgabeverzeichnis (Standard: <skill-suite>/.repo-security-scan/out):

  • report.md
  • summary.json
  • gitleaks.json, gitleaks.log
  • osv.json, osv.log

Exit-Codes:

  • 0 keine Funde
  • 1 Funde erkannt
  • 2 Scanner-Fehler (fehlende Tools, Ausführungsfehler)

Konfiguration / Whitelists

Bevorzugen Sie repolokale Konfiguration beim Scannen eines bestimmten Projekts:

  • gitleaks:
    • <repo>/.gitleaks.toml
    • <repo>/.gitleaksignore
  • osv-scanner:
    • <repo>/osv-scanner.toml (gilt nur für dieses Verzeichnis)

Dieses Skill-Set enthält auch konservative Standardeinstellungen unter:

  • .repo-security-scan/gitleaks.toml
  • .repo-security-scan/.gitleaksignore
  • .repo-security-scan/osv-scanner.toml

Um eine bestimmte osv-scanner-Konfigurationsdatei zu erzwingen:

bash scripts/repo-security-scan/scan.sh --repo /pfad/repo --osv-config /pfad/zu/osv-scanner.toml

Voraussetzungen installieren

  • macOS:
    • brew install gitleaks osv-scanner jq
  • Ubuntu:
    • sudo apt-get update && sudo apt-get install -y jq
    • Installieren Sie gitleaks + osv-scanner über die Veröffentlichungen oder kompilieren Sie sie über go install.

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

astra-operator

Delegate computer-use and browser tasks to OpenAI

design-inspo

Find design inspiration from curated gallery sites. Use when a user needs UI/UX references, design examples, or inspiration for specific components (navbars, CTAs, hero sections, landing pages, etc.), full websites, SaaS products, mobile apps, animations, icons, branding, or design systems. Helps select the right inspiration source and browse examples.

graphrag

Build a GraphRAG pipeline over documents. Use when plain vector search returns chunks without connections, when questions need multi-hop reasoning (

mundane-demos

Demo strategy that leads with mundane real-life utility instead of benchmarks. Use when presenting an AI agent or product to non-technical audiences. Covers picking tasks the viewer did this morning, showing end-to-end completion, and letting speed be the wow factor.

release-notes

Generate polished release notes from git history. Use when cutting a release, before publishing a GitHub release, or when you need a changelog from commits between two tags. Groups changes by type, surfaces breaking changes, and drafts highlights.

remotion-product-demos

Create Apple-keynote-quality product demo videos with Remotion. Covers glass phone mockups, floating 3D spheres, typing animations, card UIs, ripple effects, and smooth scene transitions. Use when asked to create product demos, app showcase videos, UI walkthrough animations, or

secure-agent-design

Security architecture patterns for personal AI agents that touch real accounts. Use when designing an agent with access to inbox, calendar, finances, or shopping. Covers per-user isolated VMs, pre-action sentinel checks, least-privilege connectors, human approval gates, and single-use payment credentials.

testimonial-launch

Turn user testimonials into launch distribution. Use when launching a product or feature and you want real user proof to carry the announcement instead of marketing copy. Covers soliciting specific testimonials, curating them, and amplifying via quote-posts.

unisone/openclaw-skill-suite

Create Apple-keynote-quality product demo videos with Remotion. Covers glass phone mockups, floating 3D spheres, typing animations, card UIs, ripple effects, and smooth scene transitions. Use when asked to create product demos, app showcase videos, UI walkthrough animations, or

validator-quotes

Earn and deploy third-party validator quotes for a launch. Use when you need credibility beyond your own claims. Covers who to approach, how to get honest reactions, and how to amplify them via quote-posts, based on the founder/CEO validators behind the Muse launch.

Verwandte Skills