Skip to content

Commit 17ba7c5

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 17ba7c5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ 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: docker run raviqqe/muffet:2.11.0 -v \
30+
--max-response-body-size=100000000 \
31+
--rate-limit=10 \
32+
--timeout=20 \
33+
--buffer-size=2147483647 \
34+
--color=always \
35+
--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)).*$" \
36+
https://hyperledger-fabric.readthedocs.io/en/latest/

0 commit comments

Comments
 (0)