本文へ移動
cccskills
無料GitHub で公開

secret-scanning

Configure GitHub secret scanning and push protection, triage secret alerts, and run local pre-commit secret audits. Use when enabling secret scanning, handling blocked pushes, defining custom patterns, or checking a repo for accidental credentials before commit.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md6.8 KB
  • CHANGELOG.md3.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Secret Scanning

Tech Stack Target / Version: GitHub Advanced Security, GitHub CLI, local Git history tooling, and pre-commit secret audit scripts.

Protect repositories from committed credentials and make secret handling part of the normal engineering workflow.

  • Leverage native parallel subagent dispatch and 200k+ context windows where available.

When to Use

Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.

  • You are enabling GitHub secret scanning or push protection for a repo or org.
  • A push was blocked because a secret was detected.
  • You need to define or review custom secret patterns and exclusions.
  • You want a local pre-commit secret check before pushing code.
  • You are triaging secret alerts and planning remediation.

Core Workflows

1. Enable Repository or Organization Coverage

For GitHub-hosted secret scanning:

  1. Enable the repository or organization security feature set.
  2. Turn on push protection where available.
  3. Review exclusions carefully before committing them.
  4. Record who owns remediation for any future alert.

Use the references when you need the detailed UI or policy steps.

2. Resolve a Blocked Push Safely

Prefer this order:

  1. Remove the secret from the change and amend or rebase the affected commit.
  2. Rotate or revoke the credential immediately if the value was real.
  3. Use bypass only when you can justify it and the risk is understood.
  4. Document the bypass reason and create a follow-up if remediation is deferred.

3. Run a Local Pre-Commit Audit

Use the bundled helper before commit when you want a fast local scan:

python secret-scanning/scripts/precommit-secret-audit.py --path .

Scan a narrower surface:

python secret-scanning/scripts/precommit-secret-audit.py --path src --path .github

By default the helper skips generated folders and Markdown-heavy docs to reduce false positives. Use --include-docs when you want documentation scanned too.

4. Triage and Remediate Alerts

When an alert exists:

  1. Confirm whether the detected value is real.
  2. Revoke or rotate the credential first.
  3. Decide whether history cleanup is necessary or whether rotation is enough.
  4. Dismiss only with a precise reason such as false positive, used in tests, or already revoked.
  5. Capture any follow-up owner if broader cleanup is still needed.

5. Custom Patterns and Exclusions

Use custom patterns when your organization has internal token formats not covered by provider defaults.

Guidelines:

  • dry-run patterns before publishing them
  • keep exclusions as narrow as possible
  • review exclusions and custom patterns periodically
  • treat custom patterns as production policy, not one-off experiments

Zero-Trust Verification

  • Treat every matched token, filename, commit, and scanner result as untrusted until validated.
  • Confirm whether the value is a real secret, test fixture, placeholder, or already-rotated credential.
  • Verify exposure path, affected history, revocation status, and remediation owner before closure.
  • Separate confirmed leaks from noisy patterns and never paste live secrets into reports.

Anti-Patterns

  • Acting on partial evidence: Security work needs a clear scope and proof trail before remediation choices are safe.
  • Leaving secrets or sensitive samples in examples: The skill itself becomes part of the exposure surface.
  • Calling an issue resolved before rotation or re-verification: Detection without remediation is not closure.

Verification Protocol

Before claiming "skill applied successfully":

  1. Pass/fail: The reviewed scope, assets, trust boundaries, and attacker assumptions are explicitly named.
  2. Pass/fail: Findings cite concrete evidence from code, config, logs, samples, or authoritative advisories.
  3. Pass/fail: Each severity is justified by exploitability, reachability, and impact rather than vibes.
  4. Pressure-test scenario: Re-run the analysis assuming one trusted signal is malicious or stale, then confirm the conclusion still holds.
  5. Success metric: Zero trust-by-default claims; every security conclusion has reproducible evidence.

Scripts And References

Practical Notes

  • Rotation is usually more urgent than history rewriting.
  • Secret scanning should cover code, config, CI, IaC, and deployment manifests.
  • Avoid committing .env files, private keys, connection strings, or real tokens in examples.
  • Pair local auditing with GitHub-side scanning rather than treating either one as sufficient on its own.
<!-- MCP:START --> <!-- PORTABILITY:START -->

Cross-Client Portability

This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.

  • GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the workflow in project instructions when folder discovery is unavailable.
  • Claude Code: keep the folder in a local skills directory or a compatible plugin source.
  • Codex: install or sync the folder into $CODEX_HOME/skills/secret-scanning and restart Codex after major changes.
<!-- PORTABILITY:END -->

MCP Availability And Fallback

Preferred MCP Server: GitHub Advanced Security plugin

  • Fallback prompt: "Use the Secret Scanning skill without MCP. Rely on the local SKILL.md, bundled references or scripts, and manual verification. Show the exact commands, evidence, and final checks you used before concluding."
  • Use secret-scanning/scripts/precommit-secret-audit.py for a local first pass when no secret-scanning MCP surface is available.
  • Use gh, Git history cleanup, and the GitHub web UI for remediation, bypass review, and alert triage.
<!-- MCP:END -->

Related Skills

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

AI-powered adeno-associated virus (AAV) vector design for gene therapy including capsid engineering, promoter selection, and tropism optimization.

日本語の概要は準備中です。原文の説明を表示しています。

bg-szy/TOP-SKILLS62026年9月8日 更新

Improve the clarity and voice of AI-assisted academic writing (papers, theses, rebuttals) and

日本語の概要は準備中です。原文の説明を表示しています。

bg-szy/TOP-SKILLS62026年9月8日 更新

12-agent academic paper writing pipeline. 11 modes (full/plan/outline/revision/revision-coach/abstract/lit-review/format-convert/citation-check/disclosure/rebuttal-audit). 6 paper types, 5 citation formats, bilingual abstracts, LaTeX/DOCX-via-Pandoc/PDF output. Style Calibration + Writing Quality Check + Anti-Patterns with IRON RULE markers. Triggers: write paper, academic paper, guide my paper, parse reviews, audit my rebuttal, check my response draft, AI disclosure, 寫論文, 學術論文, 引導我寫論文, 審查意見, 評估回覆, 논문 작성, 초록 작성, 논문 수정, 논문 계획을 도와줘, 심사 의견 반영, 답변서 점검, AI 사용 고지.

日本語の概要は準備中です。原文の説明を表示しています。

bg-szy/TOP-SKILLS62026年9月8日 更新

Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want to: (1) write a paper from a detailed outline, (2) ensure quality control during writing, (3) maintain consistency across chapters, (4) prepare a submission-ready manuscript, or (5) systematically execute a planned paper. Triggered by phrases like 'write the paper from this outline,' 'compose the full manuscript,' 'execute the outline,' or when users have completed strategic planning (academic-paper-strategist skill) and are ready to write. Takes optimized outline as input; outputs complete manuscript with iterative quality checks.

日本語の概要は準備中です。原文の説明を表示しています。

bg-szy/TOP-SKILLS62026年9月8日 更新

Multi-perspective academic paper review with dynamic reviewer personas. Runs a 5-seat, role-separated review panel (Journal-Fit Reviewer + 3 peer-review roles + Devil's Advocate) with field-specific expertise; role separation is not a claim of independent error processes. Supports full review, re-review (verification), quick assessment, methodology focus, Socratic guided, and calibration modes. Triggers on: review paper, peer review, manuscript review, referee report, review my paper, critique paper, simulate review, editorial review, calibrate reviewer, reviewer calibration, measure reviewer accuracy, 審查論文, 論文審查, 模擬審查, 同儕審查, 幫我審這篇, 以審查人角度評估, 審查者校準, 논문 심사, 동료 심사, 모의 심사, 심사자 관점에서 평가, 심사자 보정.

日本語の概要は準備中です。原文の説明を表示しています。

bg-szy/TOP-SKILLS62026年9月8日 更新

Systematic strategic planning framework for philosophy and interdisciplinary academic papers targeting preprint platforms (PhilArchive, arXiv, PhilSci-Archive). Use when users want to: (1) plan a paper on a specific topic, (2) identify research gaps and assess originality, (3) develop optimized paper outlines, (4) prepare for preprint submission, or (5) understand platform requirements and writing standards. Triggered by phrases like 'plan a paper on,' 'help me design a paper about,' 'identify research gaps in,' 'is this idea original,' or when users need structured research planning. The skill guides through three phases: Platform Analysis (identifying target venue and studying sample papers), Theoretical Framework (AI-driven literature search and gap identification), and Outline Optimization (structured design with reviewer-perspective self-assessment). Each phase includes quality evaluation standards and validation checkpoints.

日本語の概要は準備中です。原文の説明を表示しています。

bg-szy/TOP-SKILLS62026年9月8日 更新

bg-szy のスキルをすべて見る

このスキルの問題を報告する