Application card: GitHub security and quality AI features - GitHub Docs
Skip to main content Skip to content Collapse sidebar Expand sidebar Application card: GitHub security and quality AI features Use GitHub's AI-powered code security and code quality features responsibly by understanding their purposes, capabilities, and limitations. In this article What is an Application Card? GitHub’s application and platform cards are intended to help you understand how our AI technology works, the choices application owners can make that influence application performance and behavior, and the importance of considering the whole application, including the technology, the people, and the environment.
Application cards are created for AI applications and platform cards are created for AI platform services. These resources can support the development or deployment of your own applications and can be shared with users or stakeholders impacted by them. As part of its commitment to responsible AI, GitHub adheres to Microsoft's six core principles : fairness, reliability and safety, privacy and security, inclusiveness, transparency, and accountability.
These principles are embedded in the Responsible AI Standard , which guides teams in designing, building, and testing AI applications. Application and Platform Cards play a key role in operationalizing these principles by offering transparency around capabilities, intended uses, and limitations. For further insight, readers are encouraged to explore Microsoft’s Responsible AI Transparency Report and GitHub Terms . 1.
Overview GitHub's security and quality platform includes several AI-powered capabilities that help developers find and fix security vulnerabilities, detect leaked secrets, and improve code quality. This application card covers the following experiences: Copilot Autofix for code scanning : Automatically generates fix suggestions for CodeQL alerts on pull requests and the default branch. Generic secret detection : Uses a model to identify unstructured secrets in source code that deterministic pattern matching cannot find.
Custom pattern regex generator : Uses AI to generate regular expressions for custom secret scanning patterns from natural language descriptions. GitHub Code Quality : Surfaces code quality issues and offers LLM-powered fix suggestions on pull requests and the default branch. Also provides AI-powered automatic generation of code coverage workflows. Copilot Autofix is an expansion of code scanning that provides users with targeted recommendations to help them fix code scanning alerts, avoiding the introduction of new security vulnerabilities.
Potential fixes are generated automatically by large language models (LLMs) using data from the codebase and from code scanning analysis. Copilot Autofix is available for CodeQL analysis and does not require a GitHub Copilot subscription. Code scanning users can already see security alerts on their pull requests. However, developers often have little training in secure coding, so fixing these alerts requires substantial effort.
Copilot Autofix lowers the barrier of entry by combining information on best practices with details of the codebase and alert to suggest a potential fix. Instead of starting with a search for information about the vulnerability, the developer starts with a code suggestion that demonstrates a potential solution for their codebase. The developer evaluates the potential fix to determine whether it is the best solution for their codebase and to ensure that it maintains the intended behavior.
Secret scanning's generic secret detection is an AI-powered expansion of secret scanning that identifies unstructured secrets in source code or other GitHub surfaces and generates an alert. GitHub Secret Protection and GitHub Advanced Security users can already receive secret scanning alerts for partner or custom patterns found in their source code, but unstructured secrets are not easily discoverable. Secret scanning uses models to identify these secrets.
When a finding is detected, an alert is displayed in the "Generic" list of secret scanning alerts (under the Security and quality tab of the repository, organization, or enterprise), so that maintainers and security managers can review the alert and, where necessary, remove the credential or implement a fix. Generic secret detection does not require a GitHub Copilot subscription. Secret scanning's custom pattern regular expression generator makes it possible to define custom secret scanning patterns without knowledge of regular expressions.
Users input a natural language description of what they want to detect, along with optional example strings, and the generator produces up to three candidate regular expressions. These patterns can then be validated via the dry-run mechanism before being deployed as custom patterns. The regular expression generator does not require a GitHub Copilot subscription. GitHub Code Quality helps users improve code reliability, maintainability, and overall project health by surfacing actionable feedback and offering automatic fixes for findings in pull requests and on the default branch.
When Code Quality is enabled, two types of analysis run: CodeQL quality queries identify problems with the maintainability, reliability, or style of code, and LLM-powered analysis provides additional insights beyond what deterministic engines can find. When a quality issue is detected, Copilot Autofix suggests a relevant fix. On pull requests, results are displayed as comments left by the github-code-quality bot. On the default branch, LLM-powered findings are displayed in the AI findings dashboard under the Security and quality tab.
Additionally, Code Quality can automatically generate a code coverage CI workflow for your repository using an AI-powered agent, reducing the manual effort required to set up coverage tracking. The primary supported language for GitHub Code Security AI features is English. 2. Key terms The following list provides a glossary of key terms related to GitHub Code Security AI features: CodeQL : GitHub's semantic code analysis engine for identifying security vulnerabilities in source code.
Copilot Autofix : GitHub's LLM-powered feature that automatically generates fix suggestions for code scanning alerts. Copilot Autofix is available for CodeQL analysis and does not require a GitHub Copilot subscription. Large language model (LLM) : A type of neural network trained on a large body of text data that can generate, analyze, and transform natural language and code. Copilot Autofix uses one or more LLMs to process code scanning alerts and produce fix suggestions.
AI detection for secret scanning : AI-powered capabilities that extend secret scanning, including generic secret detection. Does not require a GitHub Copilot subscription. Generic secret detection : AI identification of unstructured secrets (such as passwords) that are not covered by partner or custom patterns. Generic secret detection uses models to scan for password-like strings in source code. Custom pattern : A user-defined regular expression used by secret scanning to detect secrets that match a specific format.
The custom pattern regular expression generator helps create these patterns from natural language descriptions. SARIF : Static Analysis Results Interchange Format—the standard format CodeQL uses to report code scanning findings, including alert locations and descriptions. GitHub Code Quality : A feature that surfaces code quality issues and offers LLM-powered fixes. Code Quality combines CodeQL quality queries with LLM-powered analysis to identify maintainability, reliability, and style issues.
AI findings : The dashboard under the Security and quality tab where LLM-powered Code Quality findings for the default branch are displayed. 3. Key features or capabilities The key features and capabilities outlined here describe what GitHub Code Security AI features are designed to do and how they perform across supported tasks. Automated fix suggestions for security
The rest of this page is on the live site.