From 99679f45052e699214c60bcb9e8172b8322a9c73 Mon Sep 17 00:00:00 2001 From: Matthias Ngeo Date: Wed, 6 Nov 2024 14:31:06 +0800 Subject: [PATCH] Configure lychee --- .github/workflows/lint.yaml | 9 ++++++++- lychee.toml | 0 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 lychee.toml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 8402f4f3a..44afb2385 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -6,7 +6,7 @@ on: paths: - .github/workflows/lint.yaml - '**.md' - pull_request: + pull_request_target: paths: - .github/workflows/lint.yaml - '**.md' @@ -16,6 +16,13 @@ jobs: name: Lint Markdown URLs runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + - uses: tibdex/github-app-token@v2 + id: generate-token + with: + app_id: ${{ secrets.AUTO_MAID_APP_ID }} + private_key: ${{ secrets.AUTO_MAID_PRIVATE_KEY }} - uses: lycheeverse/lychee-action@v2 with: args: --base . --no-progress './**/*.md' + token: ${{ steps.generate-token.outputs.token }} diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 000000000..e69de29bb