Skip to content

Commit eaa6982

Browse files
committed
fix broken link check
- add 403 status - we only check en/latest Signed-off-by: Fedor Partanskiy <[email protected]>
1 parent 7887caf commit eaa6982

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/broken-link-checker.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ jobs:
2424
steps:
2525
- name: Checkout Fabric Code
2626
uses: actions/checkout@v4
27-
- name: Setup Go
28-
uses: actions/setup-go@v5
29-
with:
30-
go-version-file: go.mod
31-
- name: Install Muffet
32-
run: go install github.com/raviqqe/muffet/v2@latest
3327
- name: Check Broken Links with Muffet
3428
# 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.
35-
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/
29+
run: |
30+
docker run raviqqe/muffet:2.11.0 -v \
31+
--max-response-body-size=100000000 \
32+
--header="User-Agent: Go-http-client/2.0" \
33+
--rate-limit=10 \
34+
--timeout=20 \
35+
--buffer-size=2147483647 \
36+
--color=always \
37+
--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)\/latest)).*$" \
38+
https://hyperledger-fabric.readthedocs.io/en/latest/

0 commit comments

Comments
 (0)