Use ephemeral PAT for linkcheck

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2023-01-28 01:46:05 +09:00 committed by Tshepang Mbambo
parent ccce1437bc
commit e37b9440ed
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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"