Skip to content

Commit 2cf6f3f

Browse files
feat: use personal access token for github auth (#2)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 0ea6667 commit 2cf6f3f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/update-readme.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ jobs:
2929

3030
- name: Install dependencies
3131
run: uv pip install .
32+
env:
33+
UV_SYSTEM_PYTHON: "1"
3234

3335
- name: Run update script
3436
env:
3537
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
3639
run: |
3740
python scripts/update_readme.py
3841

scripts/update_readme.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def fetch_repos(org_name):
1212
}
1313

1414
# Use a token if available for higher rate limits
15-
token = os.environ.get("GH_TOKEN")
15+
token = os.environ.get("PERSONAL_ACCESS_TOKEN") or os.environ.get("GH_TOKEN")
1616
if token:
1717
headers["Authorization"] = f"token {token}"
1818

@@ -21,7 +21,7 @@ def fetch_repos(org_name):
2121
response.raise_for_status() # Will raise an exception for 4xx/5xx errors
2222

2323
for repo in response.json():
24-
if not repo["private"]:
24+
if not repo["private"] and repo["name"] != ".github":
2525
repos.append({
2626
"name": repo["name"],
2727
"language": repo["language"],

0 commit comments

Comments
 (0)