From 1772a60b602aedf28a61a75fe33b982144535da0 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 3 Aug 2026 09:55:40 -0700 Subject: [PATCH] Use authentication for linkcheck This adds the use of GITHUB_TOKEN to download the linkcheck script due to IP-based rate limiting. https://github.com/rust-lang/rust/pull/158995 contains more detail. --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0cea86d1da..5cde022bad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -70,6 +70,8 @@ jobs: SPEC_RUST_ROOT: ${{ github.workspace }}/rust run: mdbook build - name: Check for broken links + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | curl -sSLo linkcheck.sh \ https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh