From 1f8c42c21e8183cb44b76d32b8f19dc5e8929ab9 Mon Sep 17 00:00:00 2001 From: Kishor Patil Date: Mon, 6 Apr 2026 12:02:15 -0400 Subject: [PATCH 1/3] Fix PyGithub Auth.Token usage for newer API Co-Authored-By: Claude Sonnet 4.6 --- signoff-check/signoff-check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/signoff-check/signoff-check b/signoff-check/signoff-check index 3da1534..293dbe6 100755 --- a/signoff-check/signoff-check +++ b/signoff-check/signoff-check @@ -25,13 +25,13 @@ import re import sys from argparse import ArgumentParser -from github import Github +from github import Auth, Github SIGNOFF_REGEX = re.compile('Signed-off-by:') def signoff(token: str, owner: str, repo_name: str, pull_number: int): - gh = Github(token, per_page=100, user_agent='signoff-check', verify=True) + gh = Github(auth=Auth.Token(token), per_page=100, user_agent='signoff-check', verify=True) pr = gh.get_repo(f"{owner}/{repo_name}").get_pull(pull_number) for c in pr.get_commits(): if SIGNOFF_REGEX.search(c.commit.message): From 34a7be0f088becc629fbf6f49c93739b8b73e63c Mon Sep 17 00:00:00 2001 From: Kishor Patil Date: Mon, 6 Apr 2026 12:19:40 -0400 Subject: [PATCH 2/3] Update license header Signed-off-by: Kishor Patil --- signoff-check/signoff-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signoff-check/signoff-check b/signoff-check/signoff-check index 293dbe6..8fa8f66 100755 --- a/signoff-check/signoff-check +++ b/signoff-check/signoff-check @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (c) 2024, NVIDIA CORPORATION. +# Copyright (c) 2024-2026, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From d3868b23f576578fd883045fd8fc0162bf0c7dbd Mon Sep 17 00:00:00 2001 From: Kishor Patil Date: Mon, 6 Apr 2026 12:26:09 -0400 Subject: [PATCH 3/3] Signing Signed-off-by: Kishor Patil