-
Notifications
You must be signed in to change notification settings - Fork 828
ci: add Docker Hub authentication to mitigate pull rate limits #2393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -121,6 +121,13 @@ jobs: | |
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: flashinfer | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| continue-on-error: true # Don't fail if secret is unavailable (e.g., fork PRs) | ||
|
|
||
| - name: Show Node Info | ||
| run: ./scripts/task_show_node_info.sh | ||
| env: | ||
|
|
@@ -164,6 +171,13 @@ jobs: | |
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: flashinfer | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| continue-on-error: true # Don't fail if secret is unavailable (e.g., fork PRs) | ||
|
|
||
|
Comment on lines
+174
to
+180
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apply the same conditional fix here. Same fork PR issue as noted above. Add the π€ Prompt for AI Agents |
||
| - name: Show Node Info | ||
| run: ./scripts/task_show_node_info.sh | ||
| env: | ||
|
|
@@ -203,6 +217,13 @@ jobs: | |
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: flashinfer | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| continue-on-error: true # Don't fail if secret is unavailable (e.g., fork PRs) | ||
|
|
||
|
Comment on lines
+220
to
+226
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apply the same conditional fix here. Same fork PR issue as noted above. Add the π€ Prompt for AI Agents |
||
| - name: Show Node Info | ||
| run: ./scripts/task_show_node_info.sh | ||
| env: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Login will fail for fork PRs due to inaccessible secrets.
GitHub Actions does not expose repository secrets to workflows triggered by pull requests from forked repositories. This causes the login step to fail for external contributors, breaking their CI.
Add a condition to skip login for fork PRs (they'll fall back to anonymous rate limits):
π§ Proposed fix
- name: Login to Docker Hub + if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' uses: docker/login-action@v3 with: username: flashinfer password: ${{ secrets.DOCKERHUB_TOKEN }}Apply this same fix to all three login steps in this file.
π Committable suggestion
π€ Prompt for AI Agents