Skip to content

Use GetType() instead of suffix [bot] - #820

Open
Talgarr wants to merge 1 commit into
ossf:mainfrom
Talgarr:fix/bot_type_panic
Open

Use GetType() instead of suffix [bot]#820
Talgarr wants to merge 1 commit into
ossf:mainfrom
Talgarr:fix/bot_type_panic

Conversation

@Talgarr

@Talgarr Talgarr commented Aug 19, 2025

Copy link
Copy Markdown

Most bot has the expected [bot] suffix, but Copilot doesn't. This result in a crash on repository with Copilot in the contributor list when using the cmd/criticality_score/main.go utility.

E.g: https://github.com/mlflow/mlflow-website

The resulting error:
failed executing raw query: ... Could not resolve to a User with the login of 'Copilot'. (type: NOT_FOUND),

Most bot has the expected [bot] suffix, but Copilot doesn't. This result in a crash on repository with Copilot in the contributor list.



Signed-off-by: Sébastien Graveline <71460041+Talgarr@users.noreply.github.com>
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