Coding agents and AI tools
Is GitHub Copilot HIPAA Compliant? Does GitHub Sign a BAA for Copilot?
Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.
Short answer: No. GitHub says it does not provide BAAs, and that Microsoft's BAA does not apply to GitHub's services, which include Copilot. (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) Use Copilot only with made-up (synthetic) patient data, keep real records out of prompts, repositories and issues, and put patient data only in hosting and databases covered by a BAA.
GitHub Copilot is an AI coding assistant. It suggests code as you type in an editor such as VS Code, answers questions in a chat panel, and has an agent that can carry out coding tasks. You can use it in the editor, in a terminal, or on the GitHub website. Many physician-builders meet it because their code already lives on GitHub, the service that stores code in repositories (project folders with a full history of every change).
A BAA (business associate agreement) is the contract in which a vendor that handles patient data for your practice promises to protect it. An earlier version of this page, published November 7, 2026, said we could not confirm whether a Copilot BAA was available. GitHub's own trust center answers that question directly, so this page now leads with that answer. This is not legal advice: whether your practice is a covered entity, and what a given use means, is a question for your privacy officer or counsel.
What GitHub says, in its own words (checked November 15, 2026)
GitHub's Enterprise Trust Center, its official security and compliance FAQ, answers the HIPAA question in plain terms:
“GitHub Inc does not hold, transfer, or process Protected Health Information (PHI) and does not act as a Business Associate under HIPAA regulations. Therefore, we do not provide BAAs, and Microsoft’s BAA does not apply to our services.”
The same FAQ says GitHub Enterprise Cloud, GitHub's business product for storing code, is not meant to hold patient data at all: “GitHub Enterprise Cloud is not designed or intended for hosting personal health information (PHI) and should not be used in a way that places PHI in the GitHub environment.” (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026)
The contract says the same thing. GitHub's Data Protection Agreement, the data-privacy contract for its business customers, has a section that starts like this:
“12. CJIS Customer Agreement, HIPAA Business Associate, Biometric Data. Except with GitHub’s prior, written, and specific consent, You shall not provide GitHub any Personal Data:”
One of the listed categories is health information covered by the HIPAA rules: “B. constituting protected health information governed by the privacy, security, and breach notification rules issued by the United States Department of Health and Human Services, Parts 160 and 164 of Title 45 of the Code of Federal Regulations” (GitHub Data Protection Agreement, verified November 15, 2026) In plain language: unless GitHub has given your practice prior, written and specific consent, that contract says patient data does not go into GitHub.
Several more details from GitHub's own pages change real decisions:
- Buying through Microsoft does not change the answer. Copilot Business and Enterprise bought directly from GitHub fall under the GitHub Generative AI Services Terms; bought through Microsoft, under Microsoft's Product Terms; every other Copilot user, under Section J of the GitHub Terms of Service. (GitHub Terms for Additional Products and Features, verified November 15, 2026) Microsoft says its HIPAA BAA is delivered through the Microsoft Online Services Data Protection Addendum (Health Insurance Portability and Accountability Act (HIPAA) & Health Information Technology for Economic and Clinical Health (HITECH) Act - Microsoft Compliance | Microsoft Learn, verified November 15, 2026), and GitHub's Copilot Trust Center says “(Note: The Microsoft DPA does not apply to GitHub’s online services.)” (GitHub Copilot Trust Center (FAQ), verified November 15, 2026)
- The app is your responsibility. GitHub's AI terms make the customer solely responsible for any app built with Copilot, including meeting the legal and regulatory requirements that apply to it. (GitHub Generative AI Services Terms, verified November 15, 2026)
- Training depends on your plan. On individual plans (Copilot bought by a person for themselves, not through an organization), you grant GitHub a license to use your Copilot inputs and outputs to train AI models unless you opt out in account settings. (GitHub Terms of Service, verified November 15, 2026) For Copilot Business and Enterprise, GitHub says it does not use customer data to train AI models. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) (GitHub Generative AI Services Terms, verified November 15, 2026)
- Retention depends on where you use it. For Business and Enterprise, prompts and responses in the editor, the Copilot App and Copilot CLI are not retained by default, apart from limited retention for confirmed policy violations or security. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) For the same plans, Copilot used anywhere else, for example on the GitHub website, is retained for the life of the account. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) Usage data, which includes error messages and system logs, is kept for two years. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026)
- The model you pick matters. GitHub says its third-party model providers do not train on customer data or keep customer code, with one named exception (GitHub Copilot Trust Center (FAQ), verified November 15, 2026): when Claude Fable 5 is used, Anthropic keeps prompts and outputs to run safety classifiers. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026)
- Agent data can travel. For Copilot's agent, data stays in-region only on GitHub Enterprise Cloud with data residency; on GitHub.com it may be processed anywhere in the world. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026)
Not training on your prompts, and not keeping them, are real privacy protections. Neither one is a BAA, and neither changes GitHub's statement that it does not provide one.
Which Copilot are you using? A plan-by-plan map
| What you use | BAA available? | What GitHub says about your prompts | Safe use |
|---|---|---|---|
| An individual Copilot plan | No (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) | Inputs and outputs can train AI models unless you opt out. (GitHub Terms of Service, verified November 15, 2026) | Synthetic data only. Opt out of training as well. |
| Copilot Business or Enterprise, bought from GitHub | No (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) | No training. (GitHub Generative AI Services Terms, verified November 15, 2026) Editor, App and CLI prompts not retained by default. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) | Synthetic data only. Use content exclusion for sensitive folders. |
| Copilot Business or Enterprise, bought through Microsoft | No. The Microsoft DPA, which carries Microsoft's BAA, does not apply to GitHub's services. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) | Use is governed by Microsoft's Product Terms. (GitHub Terms for Additional Products and Features, verified November 15, 2026) No training on Business or Enterprise data. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) | Do not assume your Microsoft agreement covers it. |
| Copilot on the GitHub website (for example, chat about an issue or pull request) | No (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) | Business and Enterprise: retained for the life of the account. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) | Never describe a real patient in an issue, comment or website chat. |
| Copilot agent working on GitHub.com | No (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) | May be processed anywhere in the world. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) | Point it only at repositories with no patient data in them. |
What this means for your app
Copilot is a tool for writing code. Your app, once it runs, is something else: it has a database, a login system, file storage and perhaps an AI model of its own, and that is where patient data belongs. Keep the two apart in your head.
Copilot, the pen
Copilot needs to know what a referral looks like, which fields a form has, and what error your code threw. It never needs a real patient to learn any of that. An invented patient with an invented birthday, invented insurance and invented diagnosis tests a parser, a table or a form exactly as well as a real one. This is where Copilot is genuinely useful to a physician-builder, and the rule is the same on every plan: the data is made up.
Your app, the record
Real patient data flows when staff and patients use the finished app. That runtime needs services under a BAA: hosting, database, email and text messaging, and any AI model the app calls. See Vercel's BAA, AWS under a BAA, and the OpenAI API or the Anthropic API if the app calls a model.
With Copilot, patient data rarely gets in because someone decided to share it. It slips in through these routes:
- Open files. Treat anything open in your editor as something the assistant may see. A real patient export open in the next tab is a risk even if you never paste it.
- Test fixtures and seed data. A CSV of last month's real referrals saved in a tests folder so a bug can be reproduced. Once committed, it sits in the repository and its history.
- Pasted errors and logs. Error messages often include the record that failed: a name, a date of birth, a phone number.
- Issues and pull requests. A bug report on the GitHub website stays in the repository until someone deletes it. Copilot prompts and answers on the website are outside the editor, and on Business and Enterprise they are retained for the life of the account. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026)
- Screenshots. A screenshot of the live app or the EHR (electronic health record) attached to a chat or an issue, with a patient list in the corner.
- Production credentials. A connection string to the live database in a settings file, which lets an agent or a test script read real records while it works.
The repository is often a bigger exposure than the chat, because it keeps everything, including history. GitHub says GitHub Enterprise Cloud should not be used in a way that places PHI (protected health information) in the GitHub environment. (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) A private repository is still stored on GitHub's systems. HHS has said a data storage company with access to PHI is a business associate even if it never views the information. (HHS (Federal Register via govinfo.gov), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules Under the HITECH Act and GINA; Other Modifications to the HIPAA Rules (Final Rule), 78 FR 5566, verified November 15, 2026) GitHub, for its part, says it does not act as a business associate and does not provide BAAs. (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) So a private repository is not the same as a covered one. What that gap means for your practice is a question for your counsel.
How this goes wrong: a real referral export used as a test fixture
A hypothetical scenario, assembled from ordinary steps.
Imagine a family physician who has built a referral tracker in VS Code. Her practice bought Copilot Business for her and a part-time developer, so she believes the setup is safe: GitHub does not train on it, and editor prompts are not kept by default. She has even set content exclusion on a folder called exports.
One Friday, faxed referrals stop importing. To reproduce the bug she exports forty real referrals to a CSV file and saves it in tests/fixtures, not in exports. With the CSV open beside her code, she asks Copilot Chat to fix the parser, and it does. The test passes, so she commits the CSV with the fix and pushes it to the practice's private GitHub repository.
On Monday the developer opens a GitHub issue to clean up the remaining errors and pastes the failing line, which carries a patient's name, date of birth and reason for referral. He hands the issue to the Copilot agent on GitHub.com, and the agent's proposed change copies the fixture into a second test.
Look at where the data now sits:
- In a GitHub repository, where GitHub's trust center and its contract both say PHI should not go (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) (GitHub Data Protection Agreement, verified November 15, 2026), and in the repository's history, where a later commit that deletes the file leaves the earlier version in place.
- In the issue itself, and in the Copilot activity about it on the GitHub website, which on Business and Enterprise is retained for the life of the account. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026)
- In agent processing that, on GitHub.com, may happen anywhere in the world. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026)
The content exclusion did not help: the file was in a different folder, and GitHub says content exclusion is not a security boundary in any case. (Content exclusion for GitHub Copilot, verified November 15, 2026) None of this needed real data. Five invented referrals with the same formatting quirk would have reproduced the bug.
Keep, refactor, or rebuild?
If Copilot only ever saw invented data, keep the code: Copilot was the pen, not the database. If real patient data reached the repository, issues or website chat, clean those up with your counsel and keep the code. Refactor only the parts of the running app that hold patient data on services without a BAA, such as the database, hosting or an AI model the app calls.
Code that Copilot wrote lives in your own editor and repository, so moving to a covered setup is a question about the app's data and services, not about the code. Copilot can keep helping you write it, on synthetic data. If you are weighing a whole-stack change, Keep, refactor, or rebuild? walks through the decision.
If patient information already went into Copilot or your repository
Do not panic, and do not keep going. Work through this in order:
- Stop adding more. Close the file, pause the agent, and stop pasting.
- Write down the facts while they are fresh. Which Copilot plan and how it was bought, which surfaces were used (editor, website, CLI, agent), which model, what data, how many patients, and when.
- Find every copy. Search the repository, its full history, branches, issues, pull request comments and attachments. Removing a file from history takes a deliberate history rewrite, not just a new commit.
- Tell your privacy officer or counsel. Under HIPAA, an impermissible disclosure is presumed to be a breach unless a risk assessment shows a low probability that the information was compromised. (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026) That assessment looks at who received it, whether it was actually viewed, and how well it was mitigated. (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026) If notification is needed, patients must be told without unreasonable delay and no later than 60 calendar days after the breach is discovered. (HHS (eCFR), 45 CFR 164.404 -- Notification to individuals., verified November 15, 2026) Your counsel decides; this page does not.
- Note retention. Website Copilot use on Business and Enterprise is retained for the life of the account (GitHub Copilot Trust Center (FAQ), verified November 15, 2026); barring legal requirements, GitHub deletes a closed account's repositories within 90 days, though some data may remain in encrypted backups. (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) Record this for the assessment.
The step-by-step guides for the same situation in other tools apply closely here: I pasted patient information into ChatGPT and I pasted patient information into Cursor. See also AI tool sent PHI to a model without a BAA.
A safe way to set up Copilot for your practice
The data
Synthetic only
Make a small set of invented patients with realistic formatting, including the odd cases that break code: hyphenated names, missing insurance, a date of birth on February 29. Keep real exports out of the project folder, and keep production database credentials off the development machine.
The plan
Business or Enterprise
If your practice pays for Copilot, an organization plan adds no-training terms (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) and content exclusion, which is available only on Business and Enterprise. (Content exclusion for GitHub Copilot, verified November 15, 2026) On an individual plan, opt out of training. (GitHub Terms of Service, verified November 15, 2026) None of these is a BAA.
The habits
Editor, not website
Do your Copilot work in the editor, where Business and Enterprise prompts are not retained by default (GitHub Copilot Trust Center (FAQ), verified November 15, 2026), and write issues and pull requests with invented examples. Use content exclusion as a seatbelt for sensitive paths, not a wall. (Content exclusion for GitHub Copilot, verified November 15, 2026)
Then put the app's real runtime under BAAs and write the setup into your risk analysis; the risk analysis template has a place for development tools. Compare builders and services in BAA Matrix, and run your own stack through Stack Checker. If you also use other coding agents, the same pattern applies: see Cursor, Claude Code and Windsurf.
Frequently asked questions
Is GitHub Copilot HIPAA compliant?
No authority certifies software as HIPAA compliant. The practical question is whether GitHub will sign a BAA, and GitHub says it does not provide BAAs for its services. (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) Use Copilot with synthetic data only.
Our practice has a Microsoft BAA. Does it cover GitHub Copilot?
No. GitHub says Microsoft's BAA does not apply to GitHub's services. (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) Microsoft delivers its BAA through its Data Protection Addendum (Health Insurance Portability and Accountability Act (HIPAA) & Health Information Technology for Economic and Clinical Health (HITECH) Act - Microsoft Compliance | Microsoft Learn, verified November 15, 2026), and GitHub says that addendum does not apply to GitHub's online services, even when Copilot is bought through Microsoft. (GitHub Copilot Trust Center (FAQ), verified November 15, 2026)
Copilot Business doesn't keep my editor prompts. Can I paste one patient note to test a summary feature?
No. Not retaining prompts by default (GitHub Copilot Trust Center (FAQ), verified November 15, 2026) is a privacy feature, not a BAA, and GitHub's Data Protection Agreement bars HIPAA-covered health information without GitHub's prior, written and specific consent. (GitHub Data Protection Agreement, verified November 15, 2026) An invented note tests the feature just as well.
Can I keep my practice app's code on GitHub?
Code with no patient data in it, yes. What GitHub says should not go there is PHI. (GitHub Enterprise Trust Center (FAQ), verified November 15, 2026) Keep test data synthetic, keep exports and screenshots out of the repository, and keep passwords and database keys out of the code.
Does content exclusion protect patient files in my repository?
Not reliably. GitHub says content exclusion is not a security boundary. (Content exclusion for GitHub Copilot, verified November 15, 2026) It is a useful extra layer, but the fix is to keep patient files out of the repository entirely.
I already pasted a patient's details into Copilot Chat. What now?
Stop, write down what was shared and where, and tell your privacy officer or counsel, who decide whether a breach assessment and notice are needed. The steps are on the ChatGPT version of this situation and the Cursor version.
Palo Alto Health Labs Fabrica
Keep building. We make it safe.
Building with Copilot and ready for real patients? Keep using it on synthetic data; the conversation is about where the patient data goes.
Fabrica moves the patient data in your vibe-coded app into an environment your practice owns, built for HIPAA compliance, with a BAA. You keep building in the tool you already use. Start with a 30-minute call about what you have built and where patient data goes today.
See how Fabrica works and book a 30-minute call
Please do not send patient information when you get in touch. The call is a conversation, not an audit or legal advice.
Sources
Every vendor statement on this page comes from the vendor's own terms, documentation or trust pages, or from the regulator, opened and read on the date shown. Vendor terms change; confirm the current version and your own signed agreement before relying on it. This page is general information, not legal advice.
- GitHub Enterprise Trust Center (FAQ). Checked November 15, 2026.
- GitHub Data Protection Agreement. Checked November 15, 2026. Page dated Version: October 2025.
- GitHub Terms for Additional Products and Features. Checked November 15, 2026. Page dated Version Effective Date: August 27, 2026.
- Health Insurance Portability and Accountability Act (HIPAA) & Health Information Technology for Economic and Clinical Health (HITECH) Act - Microsoft Compliance | Microsoft Learn. Checked November 15, 2026.
- GitHub Copilot Trust Center (FAQ). Checked November 15, 2026.
- GitHub Generative AI Services Terms. Checked November 15, 2026. Page dated Version: March 2026.
- GitHub Terms of Service. Checked November 15, 2026. Page dated Effective date: April 27, 2026.
- HHS (Federal Register via govinfo.gov), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules Under the HITECH Act and GINA; Other Modifications to the HIPAA Rules (Final Rule), 78 FR 5566. Checked November 15, 2026. Page dated 2013-01-25.
- Content exclusion for GitHub Copilot. Checked November 15, 2026.
- HHS (eCFR), 45 CFR 164.402 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
- HHS (eCFR), 45 CFR 164.404 -- Notification to individuals.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).