Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 28 of 30
❮Prev Next❯

Who Owns GitHub Copilot Output, and Its Limits

Module 6: Privacy & Safeguards ⏱ 9 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    30-second answer

    GitHub doesn't claim ownership of Copilot's suggestions. Once you accept a suggestion it's part of your code, and you're responsible for it: whether it's correct, secure, and allowed under the licences involved. Copilot's output has limits: it can be wrong, insecure, outdated (the model has a training cut-off), it can invent APIs or packages, it may match public code under a licence, and it can't run or truly understand your code. Business and Enterprise terms include IP indemnity, so know what your plan's terms say. In practice: review, test, scan and check licences before anything ships.

    Simulate it » No Azure account needed

    Exam objective: 6.1.2 Describe ownership and limitations of outputs. (Skills measured as of August 7, 2026)

    Simulations

    Feel it before you read it. No account needed, nothing leaves this page.

    VS Code & GitHub: Who owns the output, and what to check Code references, ownership and the limits of output.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading…

    When a chat answer matches public code, Copilot lists the <strong>references</strong> and licences. That’s your cue to check you can use it.

    👆 Click the glowing item on screen to continue

    Read the steps as text
    1. When a chat answer matches public code, Copilot lists the references and licences. That’s your cue to check you can use it.
    2. GitHub doesn’t claim ownership of suggestions; you are responsible for what you accept. Business and Enterprise agreements also have terms about IP indemnity, so know what your plan says.
    3. Limitations of output: it may be wrong, insecure, outdated, or match licensed code. Review, test, scan and check licences before it ships.

    🧪 Simulation for learning. Screens are simplified versions of Visual Studio Code and github.com with GitHub Copilot; names, files and suggestions are examples. Not affiliated with GitHub or Microsoft, and nothing here touches your real account.

    😟 THE PROBLEM

    Legal asks who owns the code Copilot writes.

    😊 THE SOLUTION

    Know that you own and answer for what you accept, and what its limits are.

    • Unclear ownership✓ GitHub doesn’t claim it
    • Licence questions✓ Code references
    • Blind trust✓ Review, test, scan
    🛠️ Solved with: Ownership of output

    Start with a question

    Copilot wrote half of src/discount.js. A customer finds a bug that gives everyone 100% off. Whose bug is it?

    Yours. Not Copilot’s, not GitHub’s.

    That sounds harsh, but it’s how every other tool works. If you paste a snippet from a forum and it’s wrong, you don’t get to blame the forum. You read it, you pressed Tab, you committed it.

    The flip side is good news: GitHub doesn’t claim ownership of what Copilot suggests. The code you accept is yours to use, under the same rules as code you typed. Owning it and being responsible for it come together.

    Explain it like I’m 10

    The technical explanation

    Ownership

    GitHub’s terms for Copilot say GitHub doesn’t claim ownership of suggestions. Once accepted, the code sits in your repository like anything else. Whether it belongs to you or your employer is decided by your normal employment and contract rules, the same as code you wrote by hand.

    Responsibility

    You’re responsible for what you accept. That covers three things:

    CheckQuestion to askTool that helps
    CorrectnessDoes it do what I need, for every input?Tests, review
    SecurityCould it be abused or leak data?Code scanning, secret scanning, review
    LicensingDoes it match code under a licence I must follow?Code references, the public code policy

    The public code policy decides what happens when a suggestion matches public code of about 150 characters or more. Block hides it. Allow shows it with a code reference listing the repository and licence, so you can decide whether you can use it and how to attribute it.

    On the legal side, Copilot Business and Copilot Enterprise terms include IP indemnity. The details and conditions live in the terms, so know what your plan says rather than assuming.

    Limits of the output

    Copilot is a large language model. It predicts likely code from patterns in its training data and the context you give it. That leads to predictable limits:

    • Wrong with confidence. It doesn’t run your code, so it can’t tell when it’s wrong.
    • Hallucinated APIs and packages. It can call cart.applyCoupon() when no such method exists, or suggest a package that was never published.
    • Outdated. The model has a knowledge cut-off. A library version released after it may be missing or misused.
    • Insecure. Public code includes insecure patterns, and filters catch only some.
    • Limited context. It sees a slice of your project, not all of it, so it can miss rules defined elsewhere.
    • Uneven quality. Results are weaker for rare languages and frameworks with less public code.
    • Not repeatable. Ask twice and you may get two different answers.
    • Bias. Generated names, comments or logic can carry assumptions from training data.

    None of these mean “don’t use it”. They mean “check it the way you’d check a new teammate’s first pull request”.

    Architect level Why a made-up package is a security problem

    If a model often suggests a package name that doesn’t exist, an attacker can publish a malicious package under that name and wait. Developers who trust the suggestion install it. Before adding any dependency Copilot proposes, check it exists, who publishes it, how many people use it and what licence it has. Dependency review on pull requests catches some of this; your own check catches the rest.

    Real-world business scenario

    Online retail

    Contoso (fictional)

    The problem
    After rolling out Copilot Business, Contoso's legal team asked who owned AI-written code and what happened if it copied licensed code. Developers weren't sure either.
    What they used
    A one-page team policy: the committer owns every line, AI-drafted code gets normal review, tests and code scanning, the org sets suggestions matching public code to Block, and legal keeps a copy of the plan's terms, including IP indemnity.
    Why that choice
    It answered legal's questions with facts from GitHub's terms and gave developers clear rules without banning the tool.
    The result
    Copilot stayed on for all 120 developers, and the next audit found no unreviewed AI-generated changes in contoso-shop.

    When to use it and when not to

    ✓ Use it when…

    • Drafting code you understand and will review, test and scan before it ships.
    • Boilerplate and patterns that are easy to check.
    • Learning a new area, while checking facts against the official docs.

    ✕ Think twice when…

    • Accepting code you can't explain, especially security or money-handling logic.
    • Trusting suggestions about libraries newer than the model's cut-off.
    • Adding a suggested package without checking it exists and who publishes it.

    ↔ Alternatives to consider

    • The public code policy (Block) to hide suggestions that match public code.
    • Code references (Allow) to see the repository and licence before you decide.
    • Official docs and release notes for anything newer than the model.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    Test yourself with exercises

    5 original practice questions in the GH-300 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.

    Question 1

    Question 1 of 5

    A developer accepts a function suggested by GitHub Copilot and merges it into production. The function later causes incorrect discounts for customers. According to how GitHub Copilot is intended to be used, who is responsible for the code?

    Question 2

    Question 2 of 5

    A legal team asks whether GitHub claims ownership of code suggestions that GitHub Copilot provides to developers. What is the correct answer?

    Question 3

    Question 3 of 5 · Select 3

    Which THREE statements describe limitations of code generated by GitHub Copilot? Each correct answer presents a complete solution.

    Question 4

    Question 4 of 5

    GitHub Copilot suggests adding an npm package that no developer on the team recognizes. What should the developer do first?

    Question 5

    Question 5 of 5

    A company wants contractual protection related to intellectual property claims arising from GitHub Copilot output. Which action should the company take?

    Interview preparation

    Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.

    Beginner If Copilot writes a function and you commit it, who owns it?

    Model answer

    GitHub doesn't claim ownership of Copilot's suggestions, so it's treated like code I wrote, under my employer's usual rules. That also means I'm responsible for it, bugs and all.

    Interviewer follows up

    So can you blame Copilot if it's wrong?

    You

    No. Accepting a suggestion is a decision I made. If it breaks something, it's my change, the same as if I'd copied it from a blog.

    Intermediate Name three limits of Copilot output you'd tell a new developer about.

    Model answer

    It has a training cut-off, so newer APIs may be missing. It can invent things that don't exist, like a package name. And it predicts likely code rather than running it, so it can be insecure or just wrong, with full confidence.

    Experienced developer Your legal team asks whether Copilot output could include someone else's licensed code. How do you answer?

    Model answer

    It can happen, rarely, with longer suggestions that match public code. We control it with the "suggestions matching public code" policy: Block hides those matches, Allow shows them with a code reference giving the repository and licence. Either way the developer decides what to keep. I'd also point legal to our plan's terms, since Business and Enterprise include IP indemnity with conditions.

    Interviewer follows up

    Which setting would you pick?

    You

    Block for most teams, because it's the simplest. Allow with references if developers need the visibility and know how to handle attribution.

    Scenario Copilot suggests installing a package you've never heard of to parse dates. What do you do?

    Model answer

    Check it exists on the registry, who publishes it, how widely it's used and its licence, before installing. Made-up package names are a known risk, and attackers sometimes register names that models tend to suggest.

    Architecture & design How would you write a team policy on AI-generated code?

    Model answer

    Short and practical: the author owns every line they commit; AI-drafted code gets the same review, tests and code scanning as anything else; no secrets or personal data in prompts; public code matching set by the org; and say in the pull request when AI did a large part of the work.

    Quick revision

    Key points

    • GitHub doesn't claim ownership of Copilot suggestions.
    • The developer who accepts a suggestion is responsible for its correctness, security and licensing.
    • Output can be wrong, insecure, outdated or invented, and may match public code.
    • Copilot predicts code; it doesn't run, test or understand it.
    • Code references show the repository and licence when a suggestion matches public code (policy Allow).
    • Business and Enterprise terms include IP indemnity. Know your plan's terms.

    Important terminology

    Suggestion ownership
    GitHub doesn't claim ownership of the code Copilot suggests. Accepted code is treated like code you wrote.
    Accountability
    The developer and organization that ship code are responsible for it, whether a person or Copilot wrote the first draft.
    Code reference
    A note Copilot shows when a suggestion matches public code, listing the repository and its licence.
    IP indemnity
    A contractual promise in some plans' terms that GitHub will defend customers against certain IP claims about Copilot output, subject to conditions in those terms.
    Knowledge cut-off
    The date the model's training data ends. Libraries and APIs released after it may be missing or wrong in suggestions.
    Hallucination
    Output that looks confident and plausible but is false, such as a function or package that doesn't exist.

    Common mistakes

    • Thinking GitHub or Microsoft owns code Copilot helped write.
    • Assuming accepted code is someone else's responsibility.
    • Trusting a suggestion about a library released after the model's cut-off.
    • Installing a suggested package without checking that it exists and who publishes it.

    Exam tips

    • "Who is responsible for code accepted from Copilot?" = the developer (and their organization).
    • "Does GitHub claim ownership of suggestions?" = No.
    • "Copilot used an API that doesn't exist" = a limitation (hallucination); validate output.
    • "See the licence of matching public code" = code references with the policy set to Allow.

    Five quick revision questions

    1. 1.Does GitHub claim ownership of Copilot suggestions?Show

      No.

    2. 2.Who answers for a bug in accepted Copilot code?Show

      The developer and organization that shipped it.

    3. 3.Why might Copilot not know a library released last month?Show

      The model's training data has a cut-off date.

    4. 4.What does a code reference show?Show

      The matching public repository and its licence.

    5. 5.Which plans' terms include IP indemnity?Show

      Copilot Business and Copilot Enterprise (check the terms for conditions).

    Official references

    Finished this lesson? Tick it off. Your progress is saved in this browser.

    Next up: Public Code Matching: Block or Show References

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.