Repository navigation
build: authenticate the yt-dlp download on master installs - #892
Conversation
youtube-dl-exec's postinstall asks the GitHub API for the yt-dlp release. pull_request.yml passes GITHUB_TOKEN to pnpm install, main.yml did not, so master runs hit the anonymous runner-IP rate limit and the release job for #891 failed at Install twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The release for #891 failed twice at
pnpm install:youtube-dl-exec's postinstall queries the GitHub API for the yt-dlp release and sendsGITHUB_TOKENwhen it is set.pull_request.ymlalready passes it topnpm install;main.ymldid not, in any of its four jobs, so every master run asked anonymously from a shared runner IP.This adds
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}to the Install step ofcontributors,lint,testandrelease, the same shape aspull_request.yml. The workflow parses and each Install step carries the env.The commit is
build:rather thanci:on purpose:ci:skipstest, andreleaseneeds it, so merging this also publishes the unreleased packages from #891.🤖 Generated with Claude Code
Note
Low Risk
CI-only workflow env wiring; no application runtime or security surface change beyond using the default Actions token for dependency postinstall.
Overview
Fixes
pnpm installon themainworkflow by passingGITHUB_TOKENinto every Install step (contributors,lint,test, andrelease). That letsyoutube-dl-exec’s postinstall call the GitHub API with auth when resolving the yt-dlp release, matchingpull_request.ymland avoiding anonymous API rate limits on shared runners that blocked master/release installs.Reviewed by Cursor Bugbot for commit c0e1084. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit