Since MS took over Github also code-search requires being logged in.
Possibly it was only enforced for very generic search queries returning thousands of results but it has been around a long time, Github acquisition was only in October 2018.
!gh or !git anywhere in a ddg search will restrict it to github.