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

Improve GetOrgRepos enumeration #118

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Conversation

rgmz
Copy link
Contributor

@rgmz rgmz commented Jun 4, 2024

This fixes #100.

Query returns null (org does not exist)

$ poutine analyze_org $org --scm github --token=...
Error: failed to analyze org $org: failed to get batch of repos: org does not exist

Query returns 0 repos

$ poutine analyze_org $org --scm github --token=...
12:16PM | INFO  | No repositories found for org. If this is unexpected, ensure your token has the correct permissions.
12:16PM | INFO  | No results returned by analysis

@rgmz rgmz requested a review from a team as a code owner June 4, 2024 16:55
Copy link
Contributor

@becojo becojo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@becojo becojo merged commit 88cf5fd into boostsecurityio:main Jun 4, 2024
5 checks passed
@rgmz rgmz deleted the feat/gh-no-org branch June 4, 2024 18:21
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.

Gracefully handle an org having no public/accessible repos
2 participants