From d01392059b937f85bc16fe2762381c84b2a40e4e Mon Sep 17 00:00:00 2001 From: tghosth Date: Thu, 19 Feb 2026 09:55:00 +0200 Subject: [PATCH 1/5] Replace deprecated URL checker action with maintained fork gaurav-nelson/github-action-markdown-link-check is explicitly deprecated and points to tcort/github-action-markdown-link-check as its successor. The new action is actively maintained by the upstream markdown-link-check package author and uses the same config file format. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/url-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/url-checker.yml b/.github/workflows/url-checker.yml index 2463ed8960..76bc243dae 100644 --- a/.github/workflows/url-checker.yml +++ b/.github/workflows/url-checker.yml @@ -30,7 +30,7 @@ jobs: fi - name: Check URLs - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: tcort/github-action-markdown-link-check@v1 with: check-modified-files-only: ${{ steps.options.outputs.check-modified-files-only }} config-file: .github/workflows/config/url-checker-config.json From c26d1445948df933b6b054ac0a1831cb214ef0f8 Mon Sep 17 00:00:00 2001 From: tghosth Date: Thu, 19 Feb 2026 10:02:30 +0200 Subject: [PATCH 2/5] Test: add intentionally broken link to verify URL checker This broken link should trigger a failure in the URL checker workflow, confirming the new action correctly detects dead links. This commit should be reverted before merging. Co-Authored-By: Claude Opus 4.6 --- 5.0/en/0x02-Preface.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/5.0/en/0x02-Preface.md b/5.0/en/0x02-Preface.md index 4c0b8d3764..68222b3708 100644 --- a/5.0/en/0x02-Preface.md +++ b/5.0/en/0x02-Preface.md @@ -27,3 +27,6 @@ This major revision has been developed with several key principles in mind: Just as securing an application is never truly finished, neither is the ASVS. Although Version 5.0 is a major release, development continues. This release allows the wider community to benefit from the improvements and additions which have been accumulated but also lays the groundwork for future enhancements. This could include community-driven efforts to create implementation and verification guidance built on top of the core requirement set. ASVS 5.0 is designed to serve as a reliable foundation for secure software development. The community is invited to adopt, contribute, and build upon this standard to collectively advance the state of application security. + + +[This link is intentionally broken](https://example.com/this-page-does-not-exist-test-url-checker-12345) From e056f3d55dd8c2c8bb975d45d95d4f89ffd11f39 Mon Sep 17 00:00:00 2001 From: tghosth Date: Thu, 19 Feb 2026 10:16:42 +0200 Subject: [PATCH 3/5] Debug: add verbose output and direct markdown-link-check test - Add a step that runs markdown-link-check directly (outside Docker) to see raw output and verify it detects the broken link - Disable quiet mode and enable verbose mode on the action step - This is a temporary debug commit to be reverted Co-Authored-By: Claude Opus 4.6 --- .github/workflows/url-checker.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/url-checker.yml b/.github/workflows/url-checker.yml index 76bc243dae..4e7ea1de61 100644 --- a/.github/workflows/url-checker.yml +++ b/.github/workflows/url-checker.yml @@ -29,11 +29,18 @@ jobs: echo "use-verbose-mode=no" >> $GITHUB_OUTPUT fi + - name: Debug - run markdown-link-check directly + run: | + npm i -g markdown-link-check@3.14.2 + echo "--- Testing with broken link file ---" + markdown-link-check 5.0/en/0x02-Preface.md --config .github/workflows/config/url-checker-config.json -v || true + echo "--- Exit code: $? ---" + - name: Check URLs uses: tcort/github-action-markdown-link-check@v1 with: check-modified-files-only: ${{ steps.options.outputs.check-modified-files-only }} config-file: .github/workflows/config/url-checker-config.json folder-path: '5.0' - use-quiet-mode: yes - use-verbose-mode: ${{ steps.options.outputs.use-verbose-mode }} + use-quiet-mode: no + use-verbose-mode: yes From c9411c856f4fff18585c7cc0dcb1d6450bfbc086 Mon Sep 17 00:00:00 2001 From: tghosth Date: Thu, 19 Feb 2026 10:23:29 +0200 Subject: [PATCH 4/5] Replace Docker-based action with direct markdown-link-check invocation The tcort/github-action-markdown-link-check Docker action has a known bug (#553) where markdown-link-check silently fails inside the container, reporting all links as good without checking anything. This replaces the action with direct npm installation and invocation of markdown-link-check, which works correctly on the runner. Also fixes the PR modified-files detection by using fetch-depth: 0 for proper git diff. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/url-checker.yml | 47 ++++++++++++++++++------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/.github/workflows/url-checker.yml b/.github/workflows/url-checker.yml index 4e7ea1de61..86e3bc34db 100644 --- a/.github/workflows/url-checker.yml +++ b/.github/workflows/url-checker.yml @@ -17,30 +17,39 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4.2.2 + with: + fetch-depth: 0 + + - name: Install markdown-link-check + run: npm i -g markdown-link-check@3.14.2 - - name: Set options - id: options + - name: Determine files to check + id: files run: | if [[ "${{ github.event_name }}" == "pull_request" ]]; then - echo "check-modified-files-only=yes" >> $GITHUB_OUTPUT - echo "use-verbose-mode=yes" >> $GITHUB_OUTPUT + git diff --name-only --diff-filter=AM origin/${{ github.base_ref }} -- 5.0/ | grep '\.md$' > /tmp/files_to_check.txt || true + echo "mode=modified" >> $GITHUB_OUTPUT else - echo "check-modified-files-only=no" >> $GITHUB_OUTPUT - echo "use-verbose-mode=no" >> $GITHUB_OUTPUT + find 5.0 -name '*.md' -not -path './node_modules/*' > /tmp/files_to_check.txt + echo "mode=all" >> $GITHUB_OUTPUT fi + echo "Checking files (mode: $(cat $GITHUB_OUTPUT | grep mode | cut -d= -f2)):" + cat /tmp/files_to_check.txt - - name: Debug - run markdown-link-check directly + - name: Check URLs run: | - npm i -g markdown-link-check@3.14.2 - echo "--- Testing with broken link file ---" - markdown-link-check 5.0/en/0x02-Preface.md --config .github/workflows/config/url-checker-config.json -v || true - echo "--- Exit code: $? ---" + ERROR_FOUND=0 + while IFS= read -r file; do + if [ -n "$file" ]; then + markdown-link-check "$file" --config .github/workflows/config/url-checker-config.json -q || ERROR_FOUND=1 + fi + done < /tmp/files_to_check.txt - - name: Check URLs - uses: tcort/github-action-markdown-link-check@v1 - with: - check-modified-files-only: ${{ steps.options.outputs.check-modified-files-only }} - config-file: .github/workflows/config/url-checker-config.json - folder-path: '5.0' - use-quiet-mode: no - use-verbose-mode: yes + if [ "$ERROR_FOUND" -eq 1 ]; then + echo "" + echo "ERROR: Dead links were found!" + exit 1 + else + echo "" + echo "All links are good!" + fi From cc113edd16a85607217400ad974c009eb96f6939 Mon Sep 17 00:00:00 2001 From: tghosth Date: Thu, 19 Feb 2026 10:26:48 +0200 Subject: [PATCH 5/5] Remove intentionally broken test link The URL checker has been verified to correctly detect broken links. Removing the test link added for debugging. Co-Authored-By: Claude Opus 4.6 --- 5.0/en/0x02-Preface.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/5.0/en/0x02-Preface.md b/5.0/en/0x02-Preface.md index 68222b3708..4c0b8d3764 100644 --- a/5.0/en/0x02-Preface.md +++ b/5.0/en/0x02-Preface.md @@ -27,6 +27,3 @@ This major revision has been developed with several key principles in mind: Just as securing an application is never truly finished, neither is the ASVS. Although Version 5.0 is a major release, development continues. This release allows the wider community to benefit from the improvements and additions which have been accumulated but also lays the groundwork for future enhancements. This could include community-driven efforts to create implementation and verification guidance built on top of the core requirement set. ASVS 5.0 is designed to serve as a reliable foundation for secure software development. The community is invited to adopt, contribute, and build upon this standard to collectively advance the state of application security. - - -[This link is intentionally broken](https://example.com/this-page-does-not-exist-test-url-checker-12345)