From 26b5cd3c28b9f2ae6330000fef6991e76caf968d Mon Sep 17 00:00:00 2001 From: Fedor Partanskiy Date: Sat, 1 Nov 2025 12:58:38 +0300 Subject: [PATCH] fix broken link check - add 403 status - we only check en/latest Signed-off-by: Fedor Partanskiy --- .github/workflows/broken-link-checker.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/broken-link-checker.yml b/.github/workflows/broken-link-checker.yml index 2c917342e6b..03a251fae03 100644 --- a/.github/workflows/broken-link-checker.yml +++ b/.github/workflows/broken-link-checker.yml @@ -24,12 +24,16 @@ jobs: steps: - name: Checkout Fabric Code uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - - name: Install Muffet - run: go install github.com/raviqqe/muffet/v2@latest - name: Check Broken Links with Muffet # Exclude any links that direct to the documentation or release notes of the non-latest version to limit the scanning to target to that of the latest version. - run: muffet --max-response-body-size=100000000 --rate-limit=10 --timeout=20 --buffer-size=2147483647 --color=always --exclude="^(https:\/\/hyperledger-fabric.readthedocs.io\/[A-z_]+\/(v[\d]+.[\d]+.[\d]+|release)).*$" https://hyperledger-fabric.readthedocs.io/en/latest/ + run: | + docker run raviqqe/muffet:2.11.0 \ + --max-response-body-size=100000000 \ + --header="User-Agent: Go-http-client/2.0" \ + --rate-limit=1 \ + --max-connections-per-host=10 \ + --timeout=20 \ + --buffer-size=2147483647 \ + --color=always \ + --exclude="^(https:\/\/hyperledger-fabric.readthedocs.io\/([A-z_]+\/(v[\d]+.[\d]+.[\d]+|release)|(es|fa|fr|it|ja|ko|ml|pt|ru|vi|zh-cn|zh_CN)\/latest)).*$" \ + https://hyperledger-fabric.readthedocs.io/en/latest/