From 1ed7e5a982f202367411d0bc46ad42d37f341da2 Mon Sep 17 00:00:00 2001 From: Mike Odnis Date: Sun, 10 May 2026 10:06:37 -0400 Subject: [PATCH] fix(api-docs/cpp): silence remaining SC2016 false positives Two more single-quoted patterns in cpp template flagged by actionlint shellcheck SC2016 on vcpkg (caller pinned to @main, not the older bd95037 SHA other source repos use): sed inline-stripper with literal backticks (annotated with shellcheck disable; double quotes would require ugly backslash escapes), and the build-pages-index sed switched to double-quoted with the literal $ end-anchor escaped as \\$. --- automation/source-repo-templates/api-docs.cpp.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/automation/source-repo-templates/api-docs.cpp.yml b/automation/source-repo-templates/api-docs.cpp.yml index bf6e4279..0bda8168 100644 --- a/automation/source-repo-templates/api-docs.cpp.yml +++ b/automation/source-repo-templates/api-docs.cpp.yml @@ -171,6 +171,11 @@ jobs: working-directory: ${{ env.OUTPUT_DIR }} run: | find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do + # shellcheck disable=SC2016 + # Backticks in the sed pattern are literal characters + # matching the markdown code-span delimiters around + # `inline` in moxygen output, not shell command + # substitution. Single quotes are intentional. sed -i -E 's/ `inline`//g' "$f" done @@ -335,7 +340,7 @@ jobs: working-directory: ${{ env.OUTPUT_DIR }} run: | find . -name "*.md" -type f \ - | sed 's|^\./||; s|\.md$||' \ + | sed "s|^\./||; s|\.md\$||" \ | sort > _pages.txt jq -R -s 'split("\n") | map(select(length > 0))' _pages.txt > _pages.json rm _pages.txt