Pre-Deployment Security Check

Scan JavaScript/TypeScript code for hardcoded credentials before pushing to GitHub.

Updated Oct 31, 2025
One-click install
npx skills add https://github.com/alannreyes/bip2 --skill pre-deployment-security-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Pre-Deployment Security Check
Source: https://github.com/alannreyes/bip2/tree/main/.claude/skills/01-pre-deployment-security-check
Command: npx skills add https://github.com/alannreyes/bip2 --skill pre-deployment-security-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill scans code for sensitive credentials before pushing to GitHub, helping avoid credential leakage and ensuring compliance.

Core Features & Use Cases

  • Sensitive Data Scan: Detects hardcoded API keys, passwords, and secrets in code.
  • Git Hygiene: Verifies .env not tracked, proper .gitignore, and safe commit content.
  • Use Case: Before pushing a feature branch, run this check to ensure no secrets are exposed.

Quick Start

Run this check before you push to GitHub to confirm there are no exposed credentials; it will report findings and recommended remediations.

Frequently Asked Questions about Pre-Deployment Security Check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent credentials from being pushed to GitHub?

Scan your code for hardcoded secrets before pushing by detecting API keys, passwords, and environment variables in JavaScript/TypeScript codebases. This Skill identifies exposed credentials in .env files, .gitignore configuration, and commit content, then generates a security report with remediation steps to block credential leakage.

What secrets does a pre-deploy security check catch?

Pre-deploy security checks detect hardcoded GEMINI_API_KEY, JWT_SECRET, DATABASE_PASSWORD, AZURE_AD_CLIENT_SECRET, and other sensitive patterns in your codebase. The scan validates that .env is untracked, .gitignore is properly configured, and placeholder values aren't committed to version control.

Can I run a security scan before pushing my feature branch?

Yes. Execute this check as part of your pre-push or pre-deploy workflow to confirm no secrets are exposed in your JavaScript/TypeScript code. It validates git hygiene, scans for hardcoded credentials, and reports findings with actionable remediation steps before you push to GitHub.

How does credential detection work in a Git workflow?

Credential detection uses bash-based scanning with grep utilities to identify sensitive patterns in code and configuration files during pre-push stages. It checks for hardcoded API keys, real .env values, and improper .gitignore tracking, then generates a security report documenting exposure risks.

Does this work with both frontend and backend codebases?

Yes. This security check applies to both backend and frontend JavaScript and TypeScript codebases, scanning for hardcoded credentials, validating environment file tracking, and verifying .gitignore configuration across your entire project structure.

What happens if exposed credentials are found during the scan?

When the scan detects exposed credentials, it generates a detailed security report documenting the findings and provides actionable remediation steps to remove secrets from code, update .gitignore, and prevent future credential leakage before deployment.