Skip to content

Commit 4245911

Browse files
AlexCatarinoclaude
andauthored
Use QC_GIT_TOKEN for gh auth in stubs repo discovery (#9432)
Continuation of #9430. The default GITHUB_TOKEN is scoped to the workflow's own repo and can't see private QuantConnect/Lean.DataSource.* repos, so gh repo list was returning only the public subset. QC_GIT_TOKEN already has the org-level access required for cloning private repos in ci_build_stubs.sh, so reuse it here for the discovery step. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fca5321 commit 4245911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/gh-actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
- name: Compute additional stubs repos
3333
env:
34-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
GH_TOKEN: ${{ secrets.QC_GIT_TOKEN || secrets.GITHUB_TOKEN }}
3535
ADDITIONAL_STUBS_REPOS: ${{ secrets.ADDITIONAL_STUBS_REPOS }}
3636
run: |
3737
REPOS=$(python find_datasource_repos.py)

0 commit comments

Comments
 (0)