ワンクリックで
repository-acquisition
Strategies for cloning repositories with full history into the workspace for analysis.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Strategies for cloning repositories with full history into the workspace for analysis.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Effective usage of GitHub API tools for fetching secret scanning alerts and locations.
Guidelines for setting up isolated testing environments for secret validation scripts.
Techniques for analyzing code context around secret locations to understand usage and intent.
Use the validate-secrets tool for deterministic secret validation when a matching validator is available.
Verification guide specific to HTTP Basic Authentication credentials.
Guidelines for testing secrets that provide access to internal systems and networks.
| name | repository-acquisition |
| agent | analysis |
| description | Strategies for cloning repositories with full history into the workspace for analysis. |
| phase | 2-context-gathering |
| required | true |
This skill provides guidance on properly cloning and accessing repository content for secret validation analysis.
Always clone the repository into your designated workspace directory to ensure isolation and proper cleanup.
cd /path/to/workspace
git clone https://github.com/owner/repo.git repo
cd repo
For complete analysis, you need access to all branches and the full commit history:
git clone --mirror https://github.com/owner/repo.git repo.git
cd repo.git
git worktree add ../repo HEAD
Or for a standard clone with all branches:
git clone https://github.com/owner/repo.git repo
cd repo
git fetch --all
Secrets may exist in commits that are no longer on any branch. Use the commit SHA from the alert location:
# Show the commit containing the secret
git show <commit_sha>
# Check out the specific commit
git checkout <commit_sha>
# View the file at that specific commit
git show <commit_sha>:path/to/file
List all branches to understand where secrets may exist:
# List all branches (including remote)
git branch -a
# Check if a commit exists on specific branches
git branch --contains <commit_sha>
After acquiring the repository: