Skip to content

build: authenticate the yt-dlp download on master installs - #892

Merged
Kikobeats merged 1 commit into
masterfrom
Kikobeats/ci-install-token
Nov 15, 2026
Merged

Kikobeats merged 1 commit into
masterfrom
Kikobeats/ci-install-token

Conversation

@Kikobeats

@Kikobeats Kikobeats commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

The release for #891 failed twice at pnpm install:

youtube-dl-exec postinstall: "message": "API rate limit exceeded for 3.41.210.117. ..."
ERR_PNPM_EXECUTOR_LIFECYCLE_SCRIPT_FAILED

youtube-dl-exec's postinstall queries the GitHub API for the yt-dlp release and sends GITHUB_TOKEN when it is set. pull_request.yml already passes it to pnpm install; main.yml did 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 of contributors, lint, test and release, the same shape as pull_request.yml. The workflow parses and each Install step carries the env.

The commit is build: rather than ci: on purpose: ci: skips test, and release needs 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 install on the main workflow by passing GITHUB_TOKEN into every Install step (contributors, lint, test, and release). That lets youtube-dl-exec’s postinstall call the GitHub API with auth when resolving the yt-dlp release, matching pull_request.yml and 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

  • Chores
    • Updated automated project workflows to use configured repository credentials during installation. This is an internal maintenance change and does not alter application features or behavior for end users. No user-facing changes are included in this update.

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>
@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The workflow now passes GITHUB_TOKEN from secrets.GITHUB_TOKEN to the Install steps in the contributors, lint, test, and release jobs.

Changes: Install-step token configuration

Layer / File(s) Summary
Pass token to Install steps
.github/workflows/main.yml
The Install steps in the contributors, lint, test, and release jobs now receive GITHUB_TOKEN from secrets.GITHUB_TOKEN.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · up to c0e10

This adds a token to the Install steps of the master workflow so yt-dlp downloads avoid the anonymous GitHub API rate limit. It is low risk and ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the yt-dlp download during master installs now runs with authentication. The raw summary confirms GITHUB_TOKEN is now passed to the Install steps in the contributors, …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the yt-dlp download during master installs now runs with authentication. The raw summary confirms GITHUB_TOKEN is now passed to the Install steps in the contributors, lint, test, and release jobs of main.yml. The objectives confirm the aim is to avoid anonymous GitHub API rate limits during pnpm install. The build: prefix is explained as intentional, so it does not make the title misleading.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4e376d04-651e-476f-a861-e75533cff45a
Commits

Reviewing files that changed from the base of the PR and between 0947b6a and c0e1084.

Files selected for processing: 1

  • .github/workflows/main.yml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 95.017% (+0.5%) from 94.523% — Kikobeats/ci-install-token into master

@Kikobeats
Kikobeats merged commit 2573451 into master Nov 15, 2026
67 checks passed
@Kikobeats
Kikobeats deleted the Kikobeats/ci-install-token branch November 15, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants