원클릭으로
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: