@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / f35b557239
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 1, 23:45 UTC

Add GH token to docs build pre run check (#44534)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>

Harry Mellor committed Jun 4, 2026 at 13:43 UTC f35b557239ade45e20cb63a259985d6597bdc943
1 file changed +7 -1
docs/pre_run_check.sh
+7 -1
@@ -24,8 +24,14 @@ echo "Checking pre-commit/pre-run-check status..."
24 MAX_WAIT=300
25 INTERVAL=60
26 ELAPSED=0
27 +# Use a GitHub token if provided to raise the API rate limit (60 -> 5000
28 +# requests/hour). Set GITHUB_TOKEN in the Read the Docs environment variables.
29 +CURL_AUTH=()
30 +if [ -n "$GITHUB_TOKEN" ]; then
31 + CURL_AUTH=(-H "Authorization: Bearer $GITHUB_TOKEN")
32 +fi
33 while :; do
28 - RAW=$(curl -sS -w "\n%{http_code}" "https://api.github.com/repos/vllm-project/vllm/commits/${READTHEDOCS_GIT_COMMIT_HASH}/check-runs?check_name=pre-run-check&filter=latest")
34 + RAW=$(curl -sS "${CURL_AUTH[@]}" -w "\n%{http_code}" "https://api.github.com/repos/vllm-project/vllm/commits/${READTHEDOCS_GIT_COMMIT_HASH}/check-runs?check_name=pre-run-check&filter=latest")
35 HTTP_CODE=$(printf %s "$RAW" | tail -n1)
36 BODY=$(printf %s "$RAW" | sed '$d')
37 if [ "$HTTP_CODE" != "200" ]; then