My .netrc looks something like this:
... more entries ...
Now, when I try to find the github token, I get this:
Netrc.read["github.com"] # => ["GITHUB_TOKEN", "HEROKU_TOKEN"]
@rkh - I think (unfortunately) that this is a known issue. If I remember right you can workaround by adding a (presumably blank) password line for the time being, I think making it do the right thing would take a somewhat more significant amount of work at present, happy to answer questions but I suspect I won't have time to address this myself in the near term.