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

Support App tokens for single repo enumeration #37

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

AdnaneKhan
Copy link
Owner

@AdnaneKhan AdnaneKhan commented Sep 22, 2024

This PR adds a --machine flag to address #23 and #25. If --machine is set, Gato-X will accept ghs_ tokens for single repository enumeration mode. Since these tokens do not allow listing scopes or introspecting access, Gato-X will place the responsibility of ensuring the tokens have the correct permissions on the integrator.

For public repos, it should "just work" - I anticipate some bugs using these tokens with private repos, because some of the GraphQL responses might not come back as expected.

@AdnaneKhan AdnaneKhan marked this pull request as ready for review September 22, 2024 16:57
@AdnaneKhan AdnaneKhan merged commit 004dedd into main Sep 23, 2024
12 checks passed
@AdnaneKhan AdnaneKhan deleted the support_app_single_repo branch September 23, 2024 20:45
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