Skip to content

Commit

Permalink
Authenticate link checking requests (#5865)
Browse files Browse the repository at this point in the history
This sets up a github token to authenticate requests made by lychee, so
GitHub doesn't rate limit us so easily.

Related:
open-telemetry/opentelemetry-go-contrib#6161
  • Loading branch information
dmathieu authored Oct 3, 2024
1 parent be328ac commit d37e1ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/links-fail-fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
check-links:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4

Expand All @@ -19,6 +21,8 @@ jobs:

- name: Link Checker
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail: true
args: --max-concurrency 5 --cache --max-cache-age 1d .
4 changes: 4 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
jobs:
check-links:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -25,6 +27,8 @@ jobs:
- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --max-concurrency 1 --cache --max-cache-age 1d .

Expand Down

0 comments on commit d37e1ef

Please sign in to comment.