diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2023-01-28 01:46:05 +0900 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2023-01-28 20:39:19 +0200 |
| commit | 9d0cb48524bdb1021ff8190fed229d8ca836ba3d (patch) | |
| tree | 6daaf0d08b034f079af3053b98d24a12cdefac31 | |
| parent | 53efc55f78e3485044b708a7a5a91aac3d7f0d34 (diff) | |
| download | rust-9d0cb48524bdb1021ff8190fed229d8ca836ba3d.tar.gz rust-9d0cb48524bdb1021ff8190fed229d8ca836ba3d.zip | |
Use ephemeral PAT for linkcheck
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| -rw-r--r-- | src/doc/rustc-dev-guide/.github/workflows/ci.yml | 1 | ||||
| -rw-r--r-- | src/doc/rustc-dev-guide/book.toml | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/.github/workflows/ci.yml b/src/doc/rustc-dev-guide/.github/workflows/ci.yml index a21e342cbd2..64155ddd7d0 100644 --- a/src/doc/rustc-dev-guide/.github/workflows/ci.yml +++ b/src/doc/rustc-dev-guide/.github/workflows/ci.yml @@ -20,6 +20,7 @@ jobs: MDBOOK_TOC_VERSION: 0.9.0 DEPLOY_DIR: book/html BASE_SHA: ${{ github.event.pull_request.base.sha }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v3 with: diff --git a/src/doc/rustc-dev-guide/book.toml b/src/doc/rustc-dev-guide/book.toml index dc216760ed3..747567461ff 100644 --- a/src/doc/rustc-dev-guide/book.toml +++ b/src/doc/rustc-dev-guide/book.toml @@ -40,6 +40,9 @@ exclude = [ cache-timeout = 86400 warning-policy = "error" +[output.linkcheck.http-headers] +'github\.com' = ["Accept: application/vnd.github+json", "Authorization: Bearer $GITHUB_TOKEN"] + [output.html.redirect] "/compiletest.html" = "tests/compiletest.html" "/diagnostics/sessiondiagnostic.html" = "diagnostics/diagnostic-structs.html" |
