From 892338688a4dffa57c0de117e394ba4644b2cf45 Mon Sep 17 00:00:00 2001 From: Mike Odnis Date: Sun, 10 May 2026 09:48:22 -0400 Subject: [PATCH] fix(api-docs/cpp): silence actionlint SC2016 on find globs Switch five find calls from single-quoted to double-quoted glob args. shellcheck heuristically flags single-quoted args containing asterisk; double quotes pass the same literal to find, which still handles glob matching. --- automation/source-repo-templates/api-docs.cpp.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/automation/source-repo-templates/api-docs.cpp.yml b/automation/source-repo-templates/api-docs.cpp.yml index 55c11b0b..bf6e4279 100644 --- a/automation/source-repo-templates/api-docs.cpp.yml +++ b/automation/source-repo-templates/api-docs.cpp.yml @@ -155,7 +155,7 @@ jobs: # TypeScript template. working-directory: ${{ env.OUTPUT_DIR }} run: | - find . -type f -name '*.md' -print0 | while IFS= read -r -d '' f; do + find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do sed -E -i \ 's|\]\(([A-Za-z0-9][^)/]*\.md(#[^)]*)?)\)|](./\1)|g' \ "$f" @@ -170,7 +170,7 @@ jobs: # observable behavior. working-directory: ${{ env.OUTPUT_DIR }} run: | - find . -type f -name '*.md' -print0 | while IFS= read -r -d '' f; do + find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do sed -i -E 's/ `inline`//g' "$f" done @@ -182,7 +182,7 @@ jobs: # delete legitimate cross-references later in the document. working-directory: ${{ env.OUTPUT_DIR }} run: | - find . -type f -name '*.md' -print0 | while IFS= read -r -d '' f; do + find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do python3 - "$f" <<'PY' import pathlib, re, sys p = pathlib.Path(sys.argv[1]) @@ -223,7 +223,7 @@ jobs: # so escape-all is the safer rule here. working-directory: ${{ env.OUTPUT_DIR }} run: | - find . -type f -name '*.md' -print0 | while IFS= read -r -d '' f; do + find . -type f -name "*.md" -print0 | while IFS= read -r -d '' f; do awk ' BEGIN { in_fence = 0 } /^```/ { in_fence = !in_fence; print; next } @@ -334,7 +334,7 @@ jobs: # extension) so the docs repo can splice them into docs.json. working-directory: ${{ env.OUTPUT_DIR }} run: | - find . -name '*.md' -type f \ + find . -name "*.md" -type f \ | sed 's|^\./||; s|\.md$||' \ | sort > _pages.txt jq -R -s 'split("\n") | map(select(length > 0))' _pages.txt > _pages.json