Skip to content

Authenticate the repository listing on CI - #90

Merged
schlessera merged 1 commit into
mainfrom
authenticate-repo-listing
Oct 30, 2026
Merged

schlessera merged 1 commit into
mainfrom
authenticate-repo-listing

Conversation

@schlessera

Copy link
Copy Markdown
Member

On CI, composer install clones every repository first, and clone-all-repositories.sh lists them through the GitHub API without a token. The anonymous rate limit is shared by every job on the same runner address, so jobs fail at random with "API rate limit exceeded". This just happened to the PHPCS job on #85 and to a code quality run on #87.

The workflows don't pass GITHUB_TOKEN to that step, but setup-php already hands the job's token to Composer as its GitHub OAuth token. The script now falls back to that token when neither GH_TOKEN nor GITHUB_TOKEN is set, so CI requests are authenticated without changing the shared workflows. Locally nothing changes: the GitHub CLI or the environment variables still come first, and without any token the request stays anonymous.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schlessera
schlessera requested a review from a team as a code owner October 30, 2026 19:03
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 4112c481-0633-42e3-a90c-b14d32ce595a
Commits

Reviewing files that changed from the base of the PR and between 1476f8a and c6b3dcc.

Files selected for processing: 1
  • .maintenance/clone-all-repositories.sh
  • 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

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added bug Something isn't working scope:testing Related to testing labels Oct 30, 2026
@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@schlessera
schlessera merged commit b49433d into main Oct 30, 2026
24 checks passed
@schlessera
schlessera deleted the authenticate-repo-listing branch October 30, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant