Skip to content

CI PyGitHub DeprecationWarning in maint_tools/update_tracking_issue.py #34639

Closed

Description

@lesteve

Noticed this in one CI build log:

/home/runner/work/scikit-learn/scikit-learn/maint_tools/update_tracking_issue.py:68: DeprecationWarning: Argument login_or_token is deprecated, please use auth=github.Auth.Token(...) instead   gh = Github(args.bot_github_token)

Other scripts using PyGithub uses it the right way:

gh = Github(auth=Auth.Token(token))

Activity

  1. added
    Needs Triage
    on Aug 3, 2026
  2. added and removed
    Needs Triage
    on Aug 10, 2026
  3. lesteve commented on Aug 21, 2026

    @lesteve
    MemberAuthor

    @Brucee-ee this would be a good first issue for you if you feel like it 🙏!

  4. Brucee-ee commented on Aug 21, 2026

    @Brucee-ee
    Contributor

    Hi @lesteve , I'd like to take this one on if it's still available. Will look at update_tracking_issue.py and switch it over to the Auth.Token pattern like the other scripts. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions