GPT-5 finding
Duplicate gh helper functions across files increases drift risk
- dashboard/app/api/auth/route.ts:4-11
- dashboard/app/api/auth/route.ts:13-23
- dashboard/app/api/auth/route.ts:25-28
- dashboard/app/api/secrets/route.ts:32-39
- dashboard/app/api/secrets/route.ts:41-51
- dashboard/app/api/secrets/route.ts:53-56
Identical helper logic is defined in multiple files, increasing maintenance burden and the risk of inconsistent behavior over time.
Recommendation
Extract shared gh helpers into a common module and import them from both routes.