Performs prerequisites check and extracts GitHub account/repo from local git remote for Dependabot operations. Use when working with Dependabot alerts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/security-vulnerabilities:pre-checks-for-github-dependabot-alertsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill performs common pre-checks required for all Dependabot alert operations:
This skill performs common pre-checks required for all Dependabot alert operations:
$GITHUB_DEPENDABOT_PAT environment variable is setCheck if the $GITHUB_DEPENDABOT_PAT environment variable is set without printing its value:
if [ -z "$GITHUB_DEPENDABOT_PAT" ]; then
echo "❌ GITHUB_DEPENDABOT_PAT environment variable is not set"
echo "Please set this environment variable with a valid GitHub Personal Access Token that has 'security_events' scope"
exit 1
fi
echo "✅ GITHUB_DEPENDABOT_PAT is configured"
If the variable is empty or not set:
security_events scopeExtract the GitHub account and repository name from the git remote URL:
git remote get-url origin
Parse the output to extract the account and repo name. The URL will typically be in one of these formats:
https://github.com/ACCOUNT/REPO.gitgit@github.com:ACCOUNT/REPO.gitParsing logic:
github.com/ to .git: to .git/ to get ACCOUNT and REPO.git suffix if presentIf the command fails or the URL is not a GitHub URL:
Store and return the following values for use by the calling command:
ACCOUNT: GitHub account/organization nameREPO: Repository nameDisplay to the user:
✓ Prerequisites check passed
✓ Repository: ACCOUNT/REPO
These values will be available for subsequent operations that require GitHub API calls.
npx claudepluginhub allousas/claude-code-plugins --plugin security-vulnerabilitiesAutomatically detects and configures GitHub credentials (GITHUB_TOKEN, gh CLI, SSH, helpers) for git remotes and auth in workflows targeting GitHub repositories.
Hardens GitHub Actions workflows against supply chain attacks, credential theft, and privilege escalation. Pins actions to SHAs, minimizes GITHUB_TOKEN permissions, prevents script injections via PR inputs, and enforces workflow change reviews.
Runs CI gates locally before push by enumerating GitHub Actions workflows, executing the locally-runnable subset in CI order, and pinning the local-vs-CI delta as memory.