GitHub Advanced Security (GHAS) is a security suite integrated directly into GitHub Enterprise and Azure DevOps, designed to protect codebases, secrets, and dependencies. It includes code scanning (using CodeQL), secret scanning with push protection, and dependency review to identify vulnerabilities early in the development lifecycle.
Key Features and Usage Examples:
- Secret Scanning & Push Protection: Detects hardcoded credentials (API keys, tokens) in code and blocks commits that contain them to prevent leaks.
- Code Scanning (SAST): Uses CodeQL, a semantic code analysis engine, to scan code for vulnerabilities like SQL injection or cross-site scripting (XSS) during pull requests.
- Dependency Review & Graph: Analyzes third-party dependencies for known vulnerabilities before they are merged, reducing supply chain risks.
- GitHub Copilot Autofix: Leverages AI to suggest automatic fixes for vulnerabilities identified during code scanning.