summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-10 23:19:46 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-10 23:19:46 +0300
commit899705db034ca64375b3617412b9e2a51d139052 (patch)
tree774b77ae55b03d5468a37cfb881ed2848afb6ac8 /.github/workflows
parent2192cff82431b98d4df45d4d4d791b9e8692947d (diff)
downloadvyos-documentation-899705db034ca64375b3617412b9e2a51d139052.tar.gz
vyos-documentation-899705db034ca64375b3617412b9e2a51d139052.zip
ci: add connect-timeout and max-time to Context7 curl call
Without explicit timeouts, a stalled TCP handshake or slow server response blocks the workflow indefinitely. --connect-timeout 10 bounds the TCP/connect phase; --max-time 60 caps total request duration. Both are within reasonable limits for a refresh POST that normally completes in well under a second. 🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/context7-refresh.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/context7-refresh.yml b/.github/workflows/context7-refresh.yml
index 9489b55e..e7910671 100644
--- a/.github/workflows/context7-refresh.yml
+++ b/.github/workflows/context7-refresh.yml
@@ -66,7 +66,11 @@ jobs:
esac
fi
echo "Refreshing Context7 variant: $VARIANT"
- curl -fsSL --retry 2 --retry-delay 10 -X POST \
+ curl -fsSL \
+ --connect-timeout 10 \
+ --max-time 60 \
+ --retry 2 --retry-delay 10 \
+ -X POST \
"https://context7.com/api/v1/refresh" \
-H "Authorization: Bearer $CONTEXT7_API_KEY" \
-H "Content-Type: application/json" \