r/github • • Feb 14 '25

Github Copilot Leaks Peoples Filesystem

Copilot started suggesting a win file path as a comment, even though I'm not running Windows. When I provided the beginning of a C drive path, it randomly completed it with different people's filesystem paths. I assume this comes from its training data.

375 Upvotes

62 comments sorted by

View all comments

115

u/Comprehensive-Pin667 Feb 14 '25

This is your kind reminder that the tool that you are letting write your code has been trained on data such as the thesis of some dude who doesn't know better than to commit absolute paths to git.

3

u/ArabicLawrence Feb 15 '25

Hey! I didn’t know better. Now, I do!

1

u/Comprehensive-Pin667 Feb 15 '25

I mean I probably didn't know better back when I was writing my thesis either.