[llvm] [libcxx][Github] Remove use of deprecated login_or_token (PR #179260)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 2 07:40:43 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

Author: Aiden Grossman (boomanaiden154)

<details>
<summary>Changes</summary>

This was deprecated by PyGithub a while back. Switch to the new form to make updating PyGithub in the future easier.

---
Full diff: https://github.com/llvm/llvm-project/pull/179260.diff


1 Files Affected:

- (modified) .github/workflows/libcxx-run-benchmarks.yml (+2-2) 


``````````diff
diff --git a/.github/workflows/libcxx-run-benchmarks.yml b/.github/workflows/libcxx-run-benchmarks.yml
index eb7793039235d..5fdfaea0a0b4c 100644
--- a/.github/workflows/libcxx-run-benchmarks.yml
+++ b/.github/workflows/libcxx-run-benchmarks.yml
@@ -48,7 +48,7 @@ jobs:
 
           cat <<EOF | python >> ${GITHUB_OUTPUT}
           import github
-          repo = github.Github("${{ github.token }}").get_repo("${{ github.repository }}")
+          repo = github.Github(auth=github.Auth.Token("${{ github.token }}")).get_repo("${{ github.repository }}")
           pr = repo.get_pull(${{ github.event.issue.number }})
           print(f"pr_base={pr.base.sha}")
           print(f"pr_head={pr.head.sha}")
@@ -91,7 +91,7 @@ jobs:
           source .venv/bin/activate && cd repo
           cat <<EOF | python
           import github
-          repo = github.Github("${{ github.token }}").get_repo("${{ github.repository }}")
+          repo = github.Github(auth=github.Auth.Token("${{ github.token }}")).get_repo("${{ github.repository }}")
           pr = repo.get_pull(${{ github.event.issue.number }})
           comment = pr.get_issue_comment(${{ github.event.comment.id }})
           with open('results.txt', 'r') as f:

``````````

</details>


https://github.com/llvm/llvm-project/pull/179260


More information about the llvm-commits mailing list