Skip to content

Commit 75e09f5

Browse files
authored
Fix linkcheck failures (#6455)
* Use scitools-ci token for link checking. * Lychee ignore Stackoverflow.
1 parent cc2145a commit 75e09f5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci-linkchecks.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16+
- name: "Generate token"
17+
uses: actions/create-github-app-token@v2
18+
id: generate-token
19+
with:
20+
app-id: ${{ secrets.AUTH_APP_ID }}
21+
private-key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
22+
1623
- name: Link Checker
1724
id: lychee
1825
uses: lycheeverse/lychee-action@1d97d84f0bc547f7b25f4c2170d87d810dc2fb2c
1926
with:
27+
token: ${{ steps.generate-token.outputs.token }}
2028
fail: false
2129
args: "--verbose './docs/**/*.rst' './docs/**/*.inc' './lib/**/*.py'"
2230

.lycheeignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ https://github.com/your-user-name/iris
3232
# problem with bad certificate (review sometime?)
3333
https://scitools.github.com/cartopy
3434

35+
# returns 403 when accessed from GitHub Actions
36+
https://stackoverflow.com
37+
3538
# legacy ref in whatsnew/3.0.rst
3639
https://stickler-ci.com
3740

0 commit comments

Comments
 (0)