This can be fixed by using a token that has access to the current repo and bearer token when making the latest check.