Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
ci: fix shell quoting in health check markdown content negotiation
The extra_args parameter was passed as a single quoted string and then used unquoted, causing word splitting to break the curl -H header into malformed tokens. Use shift/`$@` to forward extra arguments properly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 18, 2026 at 18:47 UTC
1c20eea0f362cf12f653f33981d3e131fde60cca
1 file changed
+7
-7
.github/workflows/docs.health-check.yml
+7
-7
@@ -21,9 +21,9 @@ jobs:
21
check_url() {
22
local label="$1"
23
local url="$2"
24
- local extra_args="${3:-}"
24
+ shift 2
25
CHECKED=$((CHECKED + 1))
26
- if STATUS=$(curl -sL -o /dev/null -w "%{http_code}" --max-time 15 $extra_args "$url" 2>/dev/null); then
26
+ if STATUS=$(curl -sL -o /dev/null -w "%{http_code}" --max-time 15 "$@" "$url" 2>/dev/null); then
27
:
28
else
29
STATUS="000"
@@ -66,11 +66,11 @@ jobs:
66
check_url "/docs/common-faq" "${BASE_URL}/docs/common-faq"
67
68
# Markdown content negotiation
69
- check_url "/docs/quickstart (markdown)" "${BASE_URL}/docs/quickstart" '-H "Accept: text/markdown"'
70
- check_url "/docs/tools-and-toolkits (markdown)" "${BASE_URL}/docs/tools-and-toolkits" '-H "Accept: text/markdown"'
71
- check_url "/docs/authentication (markdown)" "${BASE_URL}/docs/authentication" '-H "Accept: text/markdown"'
72
- check_url "/docs/providers/openai (markdown)" "${BASE_URL}/docs/providers/openai" '-H "Accept: text/markdown"'
73
- check_url "/cookbooks (markdown)" "${BASE_URL}/cookbooks" '-H "Accept: text/markdown"'
69
+ check_url "/docs/quickstart (markdown)" "${BASE_URL}/docs/quickstart" -H "Accept: text/markdown"
70
+ check_url "/docs/tools-and-toolkits (markdown)" "${BASE_URL}/docs/tools-and-toolkits" -H "Accept: text/markdown"
71
+ check_url "/docs/authentication (markdown)" "${BASE_URL}/docs/authentication" -H "Accept: text/markdown"
72
+ check_url "/docs/providers/openai (markdown)" "${BASE_URL}/docs/providers/openai" -H "Accept: text/markdown"
73
+ check_url "/cookbooks (markdown)" "${BASE_URL}/cookbooks" -H "Accept: text/markdown"
74
75
if [ "$FAIL_COUNT" -gt 0 ]; then
76
echo "has_failures=true" >> $GITHUB_OUTPUT