Skip to content

Commit cd6317a

Browse files
committed
Authenticate REST API requests
Unauthenticated requests have a 60 request per hour limit per IP. This results in random 403 errors if other users made a lot of requests on the same runner.
1 parent 3671c58 commit cd6317a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
- name: Fetch build matrix
4646
run: |
4747
uv run tools/fetch_matrix2 ${{ inputs.name }} --config ci-targets.yaml \
48-
--store build.json ${{ inputs.force-build && '--force-build' || '' }} >matrix.json
48+
--store build.json --token ${{ secrets.GITHUB_TOKEN }} \
49+
${{ inputs.force-build && '--force-build' || '' }} >matrix.json
4950
5051
echo "tag=$(jq -rc '."tag"' matrix.json)" >>$GITHUB_ENV
5152
echo "version=$(jq -rc '."version"' matrix.json)" >>$GITHUB_ENV
@@ -373,7 +374,7 @@ jobs:
373374
run: |
374375
# Wait 10s for release to get finished.
375376
sleep 10
376-
uv run tools/make_index2 pypi/${{ inputs.name}}/index.html
377+
uv run tools/make_index2 pypi/${{ inputs.name}}/index.html --token ${{ secrets.GITHUB_TOKEN }}
377378
378379
- name: Deploy index
379380
working-directory: pypi

0 commit comments

Comments
 (0)