sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.54k stars 68 forks source link

Sourcery falsely identify project as closed source project #374

Closed ilaner closed 1 year ago

ilaner commented 1 year ago

Checklist

Description

I have an open source project, and one of the remotes is to a private repository. The origin is open source. When running sourcery review, I get the following message

⠋ AuthenticatingYou are not logged in. Login is required for closed-source projects.
Please run:
$ sourcery login
to obtain your token through your browser.

Or input your token directly with:
$ sourcery login --token TOKEN

N.B. Sourcery is located here:

Code snippet that reproduces issue



### Debug Information

IDE Version: 
Not relevant

Sourcery Version: 
1.6.0

Operating system and Version:
MacOS
bm424 commented 1 year ago

Hi @ilaner, thank you for reporting this. To help us see what's happened, can you share a link to the repository you're working on?

ilaner commented 1 year ago

This is the repo link: https://github.com/demisto/content

In my local git environment, I have set origin to git@github.com:demisto/content.git, and I have another remote to a private gitlab repo (which is unreachable from here).

bm424 commented 1 year ago

Thanks @ilaner. I ran through the authentication logic for this repo and I can't see why it would have been identified as private. This leads me to conclude that it's likely that there was some internet connection issue or similar that prevented Sourcery from authenticating. I'm going to close this issue for now, because I don't think it's a general bug. However, I'd like to try to solve your specific problem - could you send your Sourcery log file to support@sourcery.ai? I'll be able to keep investigating from there.