Repository navigation
ci(hslinkpro): pass GITHUB_TOKEN to setup-riscv-gnu-toolchain - #91
Conversation
Without a token the action passes an empty argument to curl, which the curl on the ubuntu-26.04 runner image rejects, so no toolchain is found.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Deploying cherrydap with
|
| Latest commit: |
3b84d6d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d91199bf.cherrydap.pages.dev |
| Branch Preview URL: | https://ci-fix-riscv-toolchain-setup.cherrydap.pages.dev |
The path filter still pointed at the old HPM-build.yml, so changes to this workflow file never triggered it.
|
这个有必要给secrets.GITHUB_TOKEN吗 |
Problem
The HSLinkPro Pipeline now fails at the
gregdavill/setup-riscv-gnu-toolchain@v2.0step, before any code is built:ubuntu-latesthas moved fromubuntu-24.04toubuntu-26.04. WhenGITHUB_TOKENis not set, the action's install script setsGITHUB_TOKEN_AUTH=""and expands it as"${GITHUB_TOKEN_AUTH[@]}", which passes a single empty argument to curl. The newer curl on the 26.04 image rejects empty arguments, so the release lookup returns nothing. The last successful run (2026-09-14) was still on 24.04.Fix
GITHUB_TOKENto the action step. The script then builds a proper--header "Authorization: Bearer ..."argument array instead of an empty argument, and the GitHub API lookup is authenticated (no anonymous rate limit). The toolchain version is unchanged: the action still resolves to the latest xPack release, currentlyv15.2.0-1, the same version used by the last successful run..github/workflows/HPM-build.yml. Because of that, edits to this workflow file never triggered it (including this PR).Testing