Skip to content

Commit d4c2336

Browse files
committed
fix(gen/schema): ignore auth token if not configured
1 parent b4e2474 commit d4c2336

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gen/schema/internal/scraper/scraper.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ func New(log *slog.Logger) *Scraper {
2828
cl := github.NewClient(nil)
2929

3030
// TODO: get this env var from config
31-
tkn, ok := os.LookupEnv("GITHUB_TOKEN")
31+
tkn, ok := os.LookupEnv("RELEASE_PLEASE_PAT")
3232
if ok {
3333
cl = cl.WithAuthToken(tkn)
3434
}
3535

36-
cl = cl.WithAuthToken(tkn)
37-
3836
return &Scraper{
3937
cl: cl,
4038
log: log,

0 commit comments

Comments
 (0)