News for hackers. Stuff that matters.
Re:Tell HN: GitHub is blocking search unless you are logged in by snailmailman on Saturday February 10, 2024 @01:12AM (#39324034)
I’ve been running into this too and it’s very annoying. Although I don’t think it’s particularly new either.

Just feels like an unnecessary step. Sure I have an account and can log in, but why? I just want to know which file has X function, so i can read the implementation. I don’t want to have to download the repo or sign in.

Re:Tell HN: GitHub is blocking search unless you are logged in by appplication on Saturday February 10, 2024 @02:12AM (#39324253)
Most likely anti-scraping measure. So they can detect and shut down bots or really anyone they feel like if activity looks nonstandard. Not suggesting it’s good, but it’s consistent with the in vogue trend to lock down recipient public APIs nowadays.
Re:Tell HN: GitHub is blocking search unless you are logged in by daqhris on Saturday February 10, 2024 @04:29AM (#39324831)
As an illustration, near the end of last year, bots from a renowned Email API provider spotted in less than 1 hour the leak of a public key from my public GitHub code repo. My account got suspended on their platform. It was stunning to see the speed at which they acted and automated the process to "lose" and "recover" reputation.
Re:Tell HN: GitHub is blocking search unless you are logged in by Nullabillity on Sunday February 11, 2024 @02:12AM (#39333169)
Re:Tell HN: GitHub is blocking search unless you are logged in by daqhris on Sunday February 11, 2024 @10:11AM (#39335501)
thank you for the enlightment. now it all makes sense in my mind.
Re:Tell HN: GitHub is blocking search unless you are logged in by Dylan16807 on Saturday February 10, 2024 @06:36PM (#39331307)
Wouldn't a scraper just grab whole repos?

If necessary, let's focus on the use case of searching a single repo.

Re:Tell HN: GitHub is blocking search unless you are logged in by cqqxo4zV46cp on Saturday February 10, 2024 @01:31AM (#39324104)
How often are you not signed in to GitHub? You’re presenting this as a practical pain, but I can’t remember the last time I wasn’t signed in to GitHub.
Re:Tell HN: GitHub is blocking search unless you are logged in by andreareina on Saturday February 10, 2024 @01:58AM (#39324195)
I don't have a work GitHub account and I keep personal stuff out of my work computer. The number of times I've wanted to search an open source codebase without cloning it yet is significantly nonzero.

I've also wanted to do code search on my phone, where I have no need to be logged in so I'm not.

Re:Tell HN: GitHub is blocking search unless you are logged in by jhgg on Saturday February 10, 2024 @03:49AM (#39324650)
So register a throwaway for work and your phone. Seems easily solvable in a few seconds!
Re:Tell HN: GitHub is blocking search unless you are logged in by dasyatidprime on Saturday February 10, 2024 @04:26AM (#39324816)
Seems like a good time to mention that (despite anecdotal lack of enforcement) GitHub's terms of service continue to officially forbid having more than one free account for manual use. https://docs.github.com/en/site-policy/github-terms/github-t...
Re:Tell HN: GitHub is blocking search unless you are logged in by abhinavk on Saturday February 10, 2024 @08:21AM (#39325950)
Can they let their business customers know that? Companies making their employees create new accounts for their org is not uncommon. I’m not talking about Enterprise instances.
Re:Tell HN: GitHub is blocking search unless you are logged in by al_borland on Saturday February 10, 2024 @06:04PM (#39331062)
My account through work uses SSO. I didn’t make my account, it authenticates through AD. If I leave the company, I lose access to the account.

Telling employees to make their own personal account to do company work seems like a bad idea.

Re:Tell HN: GitHub is blocking search unless you are logged in by dingensundso on Saturday February 10, 2024 @04:45AM (#39324910)
That rule sucks. I want to keep work and personal separated.
Re:Tell HN: GitHub is blocking search unless you are logged in by Kuinox on Saturday February 10, 2024 @10:55AM (#39327087)
Work account should be pro and paid by the company then.
Re:Tell HN: GitHub is blocking search unless you are logged in by mjw1007 on Saturday February 10, 2024 @12:51PM (#39328420)
If I'm considering reporting a bug I came across in a free-software project while at work, that's already something I probably couldn't justify with a strict cost-benefit calculation for my employer.

In practice my employer would be happy for me to spend my time doing it anyway, because it's the right thing to do. But asking them to pay Github for the privilege is pushing it.

Re:Tell HN: GitHub is blocking search unless you are logged in by midchildan on Saturday February 10, 2024 @10:23AM (#39326765)
I don't want to login to github.com when I'm on my work computer. That's going to take me one step closer to uploading company internal stuff by accident.
Re:Tell HN: GitHub is blocking search unless you are logged in by lurker616 on Saturday February 10, 2024 @04:50AM (#39324933)
It's especially bad because I don't really remember my passwords, so I always have to reset password when logging in again, and that refreshes the dev keys so my terminal git push also stops works - a complete PITA.
Re:Tell HN: GitHub is blocking search unless you are logged in by noman-land on Saturday February 10, 2024 @05:43AM (#39325162)
This is nuts, dude! Get a password manager or something.
Re:Tell HN: GitHub is blocking search unless you are logged in by pquki4 on Saturday February 10, 2024 @08:45AM (#39326090)
Which could happen to every other website has nothing to do with GitHub.
Re:Tell HN: GitHub is blocking search unless you are logged in by sneak on Saturday February 10, 2024 @11:16AM (#39327305)
I have my cookies autodeleted on a regular basis because I prefer my browsing sessions and activity to not be linked for surveillance purposes.

The use of a password manager makes re-logging-in effortless.

Re:Tell HN: GitHub is blocking search unless you are logged in by Nab443 on Saturday February 10, 2024 @12:48PM (#39328394)
I have a specific firefox container group for github and a few other applications so that it's not leaking cookies. No need to relogin.
Re:Tell HN: GitHub is blocking search unless you are logged in by sneak on Sunday February 11, 2024 @12:25AM (#39332846)
GitHub still knows all of your individual visits to GitHub, and which repos you viewed. Most of the time I don’t want to be browsing GitHub itself whilst logged in. I don’t like or trust Microsoft with my location or waking hours or browsing history.
Re:Tell HN: GitHub is blocking search unless you are logged in by mvdtnz on Saturday February 10, 2024 @02:44AM (#39324384)
Just log in
Re:Tell HN: GitHub is blocking search unless you are logged in by raid2000 on Saturday February 10, 2024 @09:18AM (#39326274)
I think this will be the new normal.

There are a lot more AI projects hungry for data to train their models on. This puts content companies in an uncomfortable situation: trademark infringement claims, loss of intellectual property, and more.

Re:Tell HN: GitHub is blocking search unless you are logged in by ffgjgf1 on Saturday February 10, 2024 @10:58AM (#39327124)
But Github is not a content company and they don’t really own copyright to almost anything hosted there.
Re:Tell HN: GitHub is blocking search unless you are logged in by raid2000 on Saturday February 10, 2024 @12:08PM (#39327950)
That's true, but there's an interesting parallel with GitHub's corporate parent, Microsoft, and Microsoft's other platform company LinkedIn[1]. LinkedIn sued scrapers for retrieving data from the site.

LinkedIn isn't a content company either, nor do they really own any content posted there (they don't right?), but a large part of their business moat comes from the network of people posting content there. Scrapers and bots undermine this, something the AI boom facilitates.

1: https://en.wikipedia.org/wiki/HiQ_Labs_v._LinkedIn

Re:Tell HN: GitHub is blocking search unless you are logged in by al_borland on Saturday February 10, 2024 @05:57PM (#39331006)
There is a cost to serving up all that content, and if hundreds of AI start ups are all trying to pull in data, that can add up fast. It’s not typical user behavior.
Re:Tell HN: GitHub is blocking search unless you are logged in by ffgjgf1 on Monday February 12, 2024 @04:17AM (#39342985)
If it’s just static content it wouldn’t really be that expensive. In reality egress traffic is extremely cheap compared to what Azure/AWS etc. are charging.
Re:Tell HN: GitHub is blocking search unless you are logged in by oohffyvfg on Saturday February 10, 2024 @09:36AM (#39326402)
if you log in, you've lost.

they have to serve the source without being logged in, otherwise gpl projects would just move (and we know gpl projects are the opensource trend setters).

so they will always allow you yo download the source. and thats what i do all the time. git clone, grep, rm.

or if you are logged, do it anyway checking code out with ssh which is more expensive for them.

remember kids, after Microsoft bought it, a github account is a social network account.