Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SourceGraph search feature. #53

Merged
merged 4 commits into from
Dec 8, 2023
Merged

Conversation

AdnaneKhan
Copy link
Contributor

Also addresses #52.

Adds a new --sourcegraph flag to the search module to use Sourcegraph's public code search API instead of GitHub code search. Sourcegraph supports regular expressions in queries via the API while GitHub's API has problems with complex regular expressions.

Additionally, I added an --output-text flag that will write the results to a text file. This can be passed directly into Gato's enumeration mode.

Example:

gato search --target microsoft -sg -oT ms_selfHosted.txt
gato enumerate -R ms_selfHosted.txt

@AdnaneKhan AdnaneKhan changed the base branch from main to dev December 8, 2023 20:29
@AdnaneKhan AdnaneKhan merged commit 8fdc2f8 into dev Dec 8, 2023
16 checks passed
@AdnaneKhan AdnaneKhan deleted the update/use_sourcegraph_search branch December 8, 2023 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant