US law is pretty similar in this regard, isn't it? If you don't have a license for a particular piece of code, you can't use it without the author's/copyright holder's permission, even if you found it posted online.
Re:Copilot sells code other people wrote
by solar-ice on Thursday June 23, 2022 @08:42AM
(#31848223)
You're expected, wherever you are, to look into where any code you use comes from and what legal rights you have to use it. (The author not offering you a license means you can't use the code, nearly anywhere in the world - pretty basic Berne Convention stuff.)
This is the legal expectation in general, not just for software - you can't just come across a design for a neat widget somewhere and start using it in your product, there's probably both copyright and patent on it. Software isn't special. Not everything in Github can be copied into your code verbatim.
This is nuts. How can anbody be expected to both know that you’re German and German law when you post on an international website?
Or is this a German law that exists to prevent other Germans from doing things but that the rest of the world scoffs at?
https://choosealicense.com/