跳到正文
TakoAPI
返回技能列表

ggshield-scanner

由 amascia-gg 提供

Security & Passwords
2.1k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Detect 500+ types of hardcoded secrets.

描述

该技能的功能

Wraps GitGuardian's ggshield CLI to scan repositories, files, staged changes, and Docker images for 500+ types of hardcoded secrets. It can install git pre-commit hooks to automatically block commits containing credentials before they reach version control.

ggshield combines entropy analysis, known-format pattern matching, and ML trained on real leaked credentials, catching secrets that simple regex scanners miss.

何时使用

  • Scan a repo for leaked API keys before pushing to GitHub
  • Audit an old project for credentials accidentally committed to history
  • Block commits containing hardcoded secrets via pre-commit hooks
  • Check a Docker image for secrets embedded in its layers
  • Add automated secret detection to a CI/CD pipeline

示例工作流

输入

User asks: scan my repo for secrets before I push

智能体
  1. 1

    Runs scan-repo on the target repository path

  2. 2

    ggshield scans all files and git history for secret patterns

  3. 3

    Identifies matches by file path and line number

  4. 4

    Returns a clean confirmation or a list of detected secrets with remediation advice

输出

Found 2 secrets: AWS Access Key ID in config/prod.py:42, Slack API token in .env.backup:8. Rotate these credentials immediately and remove them from history.

前置要求

  • GitGuardian account (free at dashboard.gitguardian.com)
  • GITGUARDIAN_API_KEY environment variable set to your API key
  • ggshield CLI installed

安装

clawhub install amascia-gg/ggshield-scanner

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接