Commit 5a8da3e
committed
feat(nuxt-doctor): wire --push flag to push privacy-stripped findings to the SaaS
Mirrors the vue-doctor --push implementation, adjusted for the Nuxt
audit pipeline:
--push POST findings to the SaaS after the audit
--push-url <url> Endpoint (default: https://app.the-doctor.report/api/v1/findings)
--api-key <key> API key for the x-api-key header
The push runs after the audit and after the reporter renders. The
audit's exit code is unaffected by push failure: 5xx, network errors,
and abort timeouts all log a warning but do not flip the exit code.
9 e2e tests in tests/push.integration.test.ts use a real local HTTP
server (http.createServer().listen(0)) to capture the request and
assert the 6-field privacy boundary, the x-api-key header, the URL,
the CI env forwarding, and the singular/plural wording in the
success log.
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>1 parent 29d8005 commit 5a8da3e
3 files changed
Lines changed: 424 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
299 | 303 | | |
300 | 304 | | |
301 | 305 | | |
| |||
493 | 497 | | |
494 | 498 | | |
495 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
496 | 536 | | |
497 | 537 | | |
498 | 538 | | |
| |||
714 | 754 | | |
715 | 755 | | |
716 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
717 | 772 | | |
718 | 773 | | |
719 | 774 | | |
| |||
806 | 861 | | |
807 | 862 | | |
808 | 863 | | |
809 | | - | |
810 | | - | |
| 864 | + | |
| 865 | + | |
811 | 866 | | |
812 | | - | |
| 867 | + | |
813 | 868 | | |
814 | 869 | | |
815 | 870 | | |
| |||
0 commit comments