2/26/2026 at 12:21:15 PM
Martin from GitHub here. This type of behaviour is explicitly against the GitHub terms of service, when we catch the accounts doing this we can (and do) take action against those accounts including banning the accounts. It's a game of whack-a-mole for sure, and it's not just start-ups that take part in this sketchy behaviour to be honest. I've been plenty of examples in my time across the board.The fundamental nature of Git makes this pretty easy for folks to scrape data from open source repositories. It's against our terms of service and those folks might want to talk with some lawyers about doing it - but as every Git commit contains your name and email address in the commit data it's not technically difficult even if it is unethical.
From the early days we've added features to help users anonymise their email addresses for commits posted to GitHub. Basically, you configure your local Git client to use your 'no-reply' email address in commits and that still links back to your GitHub account when you push: https://docs.github.com/en/account-and-profile/reference/ema...
I think that's still probably the best route. We want to keep open source data as open as possible, so I don't think locking down API's etc is the right route. We do throttle API requests and scraping traffic, but then again there have been plenty of posts here over the years from people annoyed at hitting those limits so it's definitely a balancing act. Love to know what folks here think though.
by martinwoodward
2/26/2026 at 7:16:41 PM
> when we catch the accounts doing this we can (and do) take action against those accounts including banning the accounts.This isn't my experience. I requested that you looked into a spammer in July 2025, you ignored my reply and the account is still active.
----
Thank you so much for the report. We're sorry to hear you're receiving unwanted emails, but it's always a possibility when your public contact information is listed on the web. You can keep your email address private if you wish by following the steps here:
Setting your commit email address
We do expect our users to comply with our Terms of Service, which prohibits transmitting using information from the GitHub (whether scraped, collected through our API, or obtained otherwise) for spamming purposes. I'm happy to look into it further to see if we can contact the reported user and let them know that this type of activity is not allowed.
Please let us know if you have any other questions or concerns.
----
My reply which was ignored:
----
I understand it will happen from time to time. I'd rather be contactable (I've received legitimate emails today because my email is on my profile).
Please take further action. My email is public with the expectation that the ToS will be enforced. If GitHub isn't discouraging spammers then it makes it much harder to justify being contactable.
All the best, David
by david_allison
2/26/2026 at 10:35:52 PM
I reported spammers ~5 times to GH, and every time the account went down in a couple of hours. Obviously mileage may vary, but I don't want the whole HN to think this process is completely broken.Please keep reporting spammers, usually it works.
by gettingoverit
2/26/2026 at 8:49:11 PM
It's impossible for them to stop if you list your email on there. They could make it harder of course. But if you put your email out there for a human to find, then a script or bot or also find it.And yes of course they can also stop a specific spammer. But that spammer may pick up another account and email.
by tom_m
2/26/2026 at 9:07:01 PM
The grandparent post wasn't asking for them to do the impossible and stop all spamming, only to take action against the particular user that spammed them.by angoragoats
2/26/2026 at 3:44:25 PM
I’ve made over five reports for this exact spam scenario, and never once have y’all acted on them. I have a hard time believing you ban spam accounts that clearly violate your ToS.I even wrote about a specific example of a YC company spamming me from my GitHub email at https://benword.com/dont-tolerate-unsolicited-spam
by retlehs
2/26/2026 at 3:47:22 PM
How would you know whether the account that did the scraping was banned?by eli
2/26/2026 at 3:50:01 PM
By visiting the account and noticing that it still has activity long after the report.by retlehs
2/26/2026 at 9:34:08 PM
I'm confused. How do you know what account scraped your email address from github in order to send you an email?Or do you mean going after the accounts of companies that make use of a likely scraped email address? That's not a bad idea either, but it has risks and isn't the same thing.
by eli
2/26/2026 at 9:55:45 PM
Half the time they literally say it in the email. I just looked in my spam folder and just a few hours ago got an email titled "Your profile: Github", that started with:> I came across your profile on GitHub. Given you're based in the US, I thought it might be relevant to reach out. > > Profile: https://github.com/tedivm
They aren't doing anything to hide it.
by tedivm
2/26/2026 at 6:25:48 PM
How do you propose GH take action without risking taking down legitimate projects due to brigades of false reports?by hedora
2/26/2026 at 7:58:57 PM
GH literally say in a parent comment:> we can (and do) take action against those accounts including banning the accounts
by adrianmsmith
2/26/2026 at 6:41:06 PM
That they use some of their trillion dollar marketshare to solve it, why are you acting like this is a hard problem? It's not. They're just too cheap and greedy to do anything about it.by shimman
2/26/2026 at 7:01:13 PM
Trillion dollar marketshare? How big do you think GitHub is?by cortesoft
2/26/2026 at 7:09:04 PM
GitHub is wholly owned by Microsoft, which has a 3 trillion market capby mardef
2/26/2026 at 8:45:32 PM
How small do you think Microsoft is??!by DonHopkins
2/26/2026 at 1:46:29 PM
I don't have any specific suggestions, but I do want to give thanks for implementing functionality to block pushes if the email field is *not* using an anonymized mail address.It's one thing to offer anonymous e-mail addresses, but it's also awesome that GitHub can help prevent mistakes that would otherwise leak a user's e-mail address. I am not sure how many people try to be privacy conscious on GitHub, but I assume most users don't, so it's nice seeing this little feature exist.
by koito17
2/26/2026 at 9:55:44 PM
It gets more complicated when commit signing, the widely broken web of trust (for the signing key) and similar are involved.And not all devs want or need anonymity on github.
In general just because information is publicly accessible in some form doesn't make it okay or legal to abuse it (accessible doesn't mean any form of usage rights are transferred to you weather it's in context of GDPR or in context of copy right).
by dathinab
2/26/2026 at 12:27:40 PM
I am also getting constant spam because apparently they can see who starred a repo (i.e. I see you starred repo x and we are doing something similar). I am not starring anything anymore.by ayhanfuat
2/26/2026 at 6:24:49 PM
Scrape once, spam forever.I think it's pretty clear you need to use an anonymization scheme in the way commits are handled so that it links back to your github account and the email addresses are kept private.
Privacy centric companies like Apple do this for users offering hashed emails, on a per login basis.
I'm sure this would not work in a world of scraping, but having that kind of ability to figure out bad actors would be nice. You could require authenticated users for certain kinds of requests, and block user information from non-authenticated requests.
by blobbers
2/26/2026 at 7:11:15 PM
They already do[0] 62114487+david-allison@users.noreply.github.com
this includes a unique ID which survives account renames, and the name of the GitHub account at the time.[0] https://docs.github.com/en/account-and-profile/reference/ema...
by david_allison
2/26/2026 at 8:02:06 PM
How does the spammer get through this then?by blobbers
2/26/2026 at 9:47:48 PM
they don't. it's an optional process, and many users don't change their git config to use the provided emailby bstsb
2/26/2026 at 2:17:58 PM
I know it is against the ToS. I've reported multiple organisations doing this. Last time I reported one, support closed the ticket saying the activity is off platform so they can't do anything.by skwashd
2/26/2026 at 2:16:32 PM
I didn't realize this was against the Github TOS - I just thought it was par for the course for recruiters nowadays. This is good to know!How do I report that person, though? Your support page about reporting abuse assumes I know the person's Github account: https://docs.github.com/en/communities/maintaining-your-safe...
by danesparza
2/26/2026 at 7:15:24 PM
What section of the ToS prohibits this? In other words, what is the thing that is being done that is against the ToS? Looking up the creator of a repo, or the contributors of the repo?I did a quick scan of the ToS and all I could find was D8 that states that autmated access (scraping) used for "AI" applies a reciprocal license that prevents the scraper from restricting GitHub's access to the data (the whole model? the weights?) resulting from the scraping.
This makes it sound like any model trained on GitHhub content cannot be commercialized, because charging for access to the output would be a "technical or other limit"... So you're obviously not really enforcing this, otherwise MS would be suing every big commercial model out there!
by just6979
2/26/2026 at 8:04:57 PM
It seems like a safe assumption that the big commercial models will have negotiated their own private GitHub terms of service, especially considering their many-digit annual contracts with Azure.by wrs
2/26/2026 at 8:31:18 PM
I have reported several spam emails to Github and from what I can tell none has been acted upon.by Foxboron
2/26/2026 at 10:28:27 PM
How about improving the processing of abuse reports for repos hosting windows malware that is actively being advertised to potential victims? https://github.com/preconfigured/dl/blob/main/ms-update32.ex...by nickphx
2/26/2026 at 12:36:03 PM
Maybe I am missing something, but can’t you simply not show the email address in a git commit? (Sincere question, not saying this is trivial. i am dumb and like to ask dumb questions even if might be embarassing)If someone wants to message someone, it goes through github notifications or github emails them
Also banning an account doesnt seem like a heavy punishment, given they can simply move to gitlab, bitbucket etc
by AznHisoka
2/26/2026 at 12:40:44 PM
That would be a fundamental change to how Git works, not just GitHub. Even if the web UI didn't show it, a simple `git log` would reveal it.You can mask your email address in git commits but a lot of open source projects won't accept that. And some pseudo-open-source ones insist on sending you an email to authenticate before they'll give you access to the GitHub repo (looking at you Unreal Engine!)
So, no, I don't think they could simply "not show the email address".
by EdNutting
2/26/2026 at 4:18:32 PM
fyi, you can also see the author email by appending ".patch" to the end of a commit URLby sheept
2/26/2026 at 12:55:24 PM
Makes sens! Appreciate the explanation!by AznHisoka
2/26/2026 at 12:43:23 PM
Git commits have a email address as a required field[0], although some people put something bogus in there. And then it's in the data provided when you clone the repo onto your machine even if you aren't using the GitHub APIs.To his point, you can set that to the no-reply email address GitHub gives you if you don't want mail but do want the commit to be linked to your GitHub account.
[0]: https://git-scm.com/docs/git-commit#_commit_information
by easton
2/26/2026 at 6:20:54 PM
Git commits are identified by a hash of their entire contents[1]. The way hashes work, if you change even one bit, the hash becomes completely different. Every commit contains the email address of the committer and the hash of the parent commit. If the email address in even one commit is changed or removed, that changes its hash, which in turn requires you to update its children, changing their hashes etc. So, updating a commit from n years ago requires you to update all commits that have been made since. By default, git will refuse to pull from such an updated repository, as commits are considered immutable once pushed.[1] In practice, it's a bit more complicated. Merkle trees are involved, so it's hashes of hashes of hashes instead of hashing a multi-gigabyte blob on each commit, but that's a performance optimization that doesn't affect semantics much.
by miki123211
2/26/2026 at 6:16:45 PM
You should be using the email address "username@no.reply.github.com" or similarThere's never been an obligation to use a real email address for git
by dent9
2/26/2026 at 6:14:49 PM
Amazon did this to me. Their recruiters started hounding me at an email address that I only ever used to sign git commits on some repos used on GitHub. When I asked them how they got my email address they said "it was in [our] database"by dent9
2/26/2026 at 2:30:59 PM
Are no-reply emails associated with the accounts if the username is changed? That's one reason why I switched back to my personal email.by TheSaifurRahman
2/26/2026 at 10:26:26 PM
Since 2017 they are yes.by martinwoodward
2/26/2026 at 1:39:00 PM
I've had more than a few instances of this over the past 2 years, and my reply is exactly the above."What you are doing is against Github's TOS"
by ericol
2/26/2026 at 6:15:53 PM
I've raised this as ticket ID 4114793, just in case.by miki123211
2/26/2026 at 2:19:13 PM
Nice, thank you Martin. How do you punish the fraudsters? Do you send them to prison over CFAA violation terms of service?by trympet
2/26/2026 at 3:56:48 PM
I kinda wish I had that much power. There would certainly be less people in the world listening to their phones without headphones..Usually starts with contacting them over email reminding them of the terms of service and warning them to stop. Then their account might get deactivated and they need to write and promise to not be naughty again. If they ignore that then the account gets removed.
There are a bunch of automated checks that are running all the time as well and will take automated action that then gets later reviewed by humans. At lot of times the process is fast-tracked.
The off-platform 'let's scrape a bunch of data and then spam nice people' is the hardest to police. Linking those mails to an offending GitHub account is hard and very manual, also anyone can send emails saying they are someone they are not and because of that anyone can deny they sent the mail and they'll usually blame a rogue agency they where working with etc.
I probably shouldn't say it, but the public shame that comes from being mentioned on social, in hacker news etc. That stops people who want to be treated as legitimate from doing that sort of thing and helps educate the wider community around what is and isn't acceptable behaviour - that is why it's good to see this thread and see the issue getting attention.
by martinwoodward
2/26/2026 at 5:14:39 PM
Love the transparency - someone should make you VP of ..uhm dev rel or something! I was being quite hyperbolic in my original comment, however, I _do_ think you are doing the right thing, and you are definitely not the bad guy.Having said that, there are big corps who have been known to use the CFAA as a way to coerce the long arm of the law upon teenagers and geeks hacking away - not always a great thing either IMO.
by trympet
2/26/2026 at 3:50:40 PM
> CFAA violation terms of serviceThis would be a gross miscarriage of justice and bringing successful action under this theory would do widespread harm by expanding the definition of the CFAA.
Just because a company can take some nuclear action, doesn't mean they should.
by nerdsniper
2/26/2026 at 2:54:26 PM
Will send a strong email: Don’t do bad things.by skeptic_ai
2/26/2026 at 6:55:51 PM
> it's not technically difficult even if it is unethical.kettle, pot, black?
I received the following offical spam last week from GitHub:
> Build AI agents with the new GitHub Copilot SDK
despite never granting consent for marketing material
(and yes, there's a GDPR complaint now working its way through the national regulator)
by blibble
2/26/2026 at 4:25:40 PM
Ban them. Honestly I get the same and it is beyond frustrating.I will pay more for GitHub if you go hard on these mfs.
by moomoo11
2/26/2026 at 4:18:58 PM
Hey, Martin - https://github.com/lucidrainsMind fixing lucidrains account? Something happened without notice or recourse. He's one of, if not the most well known open source AI researchers on the planet, with implementations and explanations of papers and ideas that are wonderful. If you could bring some sanity to that situation and take it out of whatever kafkaesque account purgatory it fell into, you'd be doing the work of angels.
Thanks!
by observationist
2/26/2026 at 4:28:18 PM
What was happening with this account? I was often seeing popular but empty (only title of the paper and maybe a short readme) repositories that were created directly after a paper was published?by davnn
2/26/2026 at 5:44:18 PM
Just part of the process - he'd queue up the projects as interesting things came in, then plow through. Usually he'd have a rough framework within a day or two, and then a working proof of concept within a week, and then return to the most promising, useful, or interesting projects.by observationist
2/26/2026 at 9:10:12 PM
I really appreciated his coding-style, but the bar is quite low on research/ML-algorithms to be fair. I still wonder how he managed to get „trending“ repositories regularly despite the repositories being empty.by davnn
2/26/2026 at 8:17:23 PM
Is this mirrored on gitlab or somewhere else? Nobody should trust Github to store all their databy nextaccountic