Prompts go to GitHub encrypted, are deleted once Suggestions are generated, with listed exceptions
GitHub Copilot sends an encrypted Prompt from the customer to GitHub to provide Suggestions. A Prompt is the code and supporting contextual information that Copilot sends to GitHub, including data the customer submits through a chat interface. Except as detailed below, Prompts are transmitted only to generate Suggestions in real time, are deleted once Suggestions are generated, and are not used for any other purpose. Prompts are encrypted during transit and are not stored at rest without the customer's permission.
Supporting quotations
A. Generally. GitHub Copilot sends an encrypted Prompt from you to GitHub to provide Suggestions to you. Except as detailed below, Prompts are transmitted only to generate Suggestions in real-time, are deleted once Suggestions are generated, and are not used for any other purpose. Prompts are encrypted during transit and are not stored at rest without your permission.
“Prompt” means the collection of code and supporting contextual information that GitHub Copilot sends to GitHub to generate Suggestions, including data you submit through a chat interface.
Data.
Qualifications & exceptions
"Except as detailed below": the retention circumstances listed in section B are exceptions.
Prompts are not stored at rest without the customer's permission.
Not stated here
The document does not say how long GitHub keeps data in the retention circumstances below.
Prompts to tools outside the code editor, such as the command-line tool, are retained to provide the service
GitHub retains the customer's Prompts when the customer uses GitHub Copilot tools that operate outside the code editor, such as Copilot for the Command Line Interface. GitHub retains those Prompts to provide the service.
Supporting quotations
Your Prompts are retained by GitHub in the following circumstances:
If you use GitHub Copilot tools that operate outside of your code editor, such as Copilot for the Command Line Interface, GitHub Copilot retains your Prompts to those tools to provide the service.
Qualifications & exceptions
Applies to tools that operate outside the code editor.
Prompts are retained according to alternative data handling the customer has configured
If the customer has configured GitHub Copilot to use alternative data handling, such as enabling interaction with third party extensions, GitHub Copilot retains the customer's Prompts based on that configuration.
Supporting quotations
Your Prompts are retained by GitHub in the following circumstances:
Custom Settings. If you have configured GitHub Copilot to use alternative data handling, such as enabling interaction with third party extensions, GitHub Copilot will retain your Prompts based on that configuration.
Qualifications & exceptions
Applies only if the customer has configured alternative data handling.
Not stated here
The document does not say what a given configuration retains or for how long.