Skip to content

Commit f39662e

Browse files
committed
probe: print scan output
1 parent c3e529d commit f39662e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/bughunt-npm.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,11 @@ jobs:
161161
sleep 3
162162
for L in ws file; do
163163
echo "===== [${{ matrix.os }} npm ${{ matrix.npm }}] layout=$L"
164-
bash repro.sh "$RUNNER_TEMP/w-$L" npm $L 2>&1 | grep -v "^Patched\|^Summary\|Got: fake\|api-token"
164+
bash repro.sh "$RUNNER_TEMP/w-$L" npm $L 2>&1 | grep -v "Got: fake"
165+
echo "--- scan.out"; cat "$RUNNER_TEMP/w-$L/scan.out"; echo "--- rb.out"; cat "$RUNNER_TEMP/w-$L/rb.out"
165166
done
167+
echo "===== control: registry left-pad"
168+
mkdir -p "$RUNNER_TEMP/ctl" && cd "$RUNNER_TEMP/ctl" && echo '{"name":"c","version":"1.0.0","dependencies":{"left-pad":"1.3.0"}}' > package.json && npm install --no-audit --no-fund >/dev/null 2>&1
169+
"$SP" scan --mode agent --api-url http://127.0.0.1:8765 --org o --api-token fake --patch-server-url http://127.0.0.1:8765 2>&1 | tail -15 || true
170+
head -c 30 node_modules/left-pad/index.js; echo
171+
echo "--- server.out"; cat "$RUNNER_TEMP/probe/server.out"; tail -20 "$RUNNER_TEMP/probe/requests.log" || true

0 commit comments

Comments
 (0)