fix: add path traversal validation for SSL certs and escape LIKE wild… #2494
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SDK Smoke | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["**"] | |
| jobs: | |
| sdk-smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Configure npm (retries, timeouts) | |
| run: | | |
| npm config set fetch-retries 5 | |
| npm config set fetch-retry-maxtimeout 120000 | |
| npm config set fetch-retry-mintimeout 20000 | |
| npm config set fetch-timeout 120000 | |
| - name: Install deps (retry up to 3x) | |
| env: | |
| PUPPETEER_SKIP_DOWNLOAD: '1' | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' | |
| npm_config_audit: 'false' | |
| npm_config_fund: 'false' | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| attempts=0 | |
| until [ $attempts -ge 3 ]; do | |
| if npm ci --no-audit --no-fund; then | |
| break | |
| fi | |
| attempts=$((attempts+1)) | |
| echo "npm ci failed (attempt $attempts); retrying in $((attempts*10))s..." >&2 | |
| sleep $((attempts*10)) | |
| done | |
| if [ $attempts -ge 3 ]; then | |
| echo "npm ci failed after 3 attempts" >&2 | |
| exit 1 | |
| fi | |
| - name: Build (CLI + SDK) | |
| run: npm run build | |
| - name: Run ESM example | |
| run: node examples/sdk-basic.mjs | |
| - name: Run CJS example | |
| run: node examples/sdk-cjs.cjs |