On start up, might be worth checking the bot-user repo list - https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-the-authenticated-user.
Might also double as auth check and warning could be logged.
Would be useful as start of troubleshooting.
curl -H 'Authorization: Bearer token' https://api.github.com/user/repos
On start up, might be worth checking the bot-user repo list - https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-the-authenticated-user.
Might also double as auth check and warning could be logged.
Would be useful as start of troubleshooting.
curl -H 'Authorization: Bearer token' https://api.github.com/user/repos