ワンクリックで
github-api-usage
Effective usage of GitHub API tools for fetching secret scanning alerts and locations.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Effective usage of GitHub API tools for fetching secret scanning alerts and locations.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Guidelines for setting up isolated testing environments for secret validation scripts.
Techniques for analyzing code context around secret locations to understand usage and intent.
Strategies for cloning repositories with full history into the workspace for analysis.
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 | github-api-usage |
| agent | analysis |
| description | Effective usage of GitHub API tools for fetching secret scanning alerts and locations. |
| phase | 1-initialization |
| required | true |
This skill provides guidance on using the available GitHub API tools effectively during the initialization phase of secret validation.
You have access to these custom tools for GitHub Secret Scanning:
| Tool | Purpose |
|---|---|
gh_secret_scanning_alert | Fetch complete alert details including state, type, validity |
gh_secret_scanning_alert_locations | Fetch all locations where the secret was found |
First, call gh_secret_scanning_alert to fetch the complete alert information:
gh_secret_scanning_alert(repo="owner/repo", alert_number=1)
This returns:
secret_type - The type of secret detectedstate - Current alert state (open/resolved)validity - GitHub's validity assessment (unknown/valid/invalid)created_at - When the alert was createdupdated_at - Last update timestamppush_protection_bypassed - If push protection was bypassedThen call gh_secret_scanning_alert_locations to get all locations:
gh_secret_scanning_alert_locations(repo="owner/repo", alert_number=1)
This returns an array of locations with:
path - File path where secret was foundstart_line / end_line - Line numberscommit_sha - The commit containing the secretdetails - Additional context about the locationFrom the alert response, capture:
A single secret may appear in multiple files or commits. Always fetch ALL locations to understand the full scope of exposure.
Secrets may exist in commits that are no longer on the default branch. The location data includes commit SHAs for historical analysis.
After gathering this information: