BIT-14769: Dependency management - security audit CI gate and update policy #11

Merged
paperclip-merge-bot merged 5 commits from task/BIT-14769-dependency-updates into main 2026-05-01 20:51:49 +01:00
5 Commits
Author SHA1 Message Date
David Santos 3999d6dcff fix(ci,writer): sync Gitea test workflow; export OpenAI test helpers
ai-news-writer-ci / test (pull_request) Successful in 43s
2026-05-01 20:50:35 +01:00
spark 29c9c5fda1 Merge branch 'main' into task/BIT-14769-dependency-updates
ai-news-writer-ci / test (pull_request) Failing after 33s
2026-05-01 05:00:50 +01:00
David Santos 49b4a87ccc fix(ci): apply ESLint-heal fileset from task/BIT-2983-test-coverage (BIT-15735)
ai-news-writer-ci / test (pull_request) Failing after 33s
2026-05-01 01:57:20 +01:00
Patrícia Santos e868644f6f chore(deps): add npm audit CI gate and dependency update policy
ai-news-writer-ci / test (pull_request) Failing after 28s
- Add npm audit --audit-level=high step to test.yml CI workflow
- Create docs/dependency-update-policy.md with update cadence,
  security scanning procedure, and documented major-version holdbacks
  (openai 4→6, eslint 8→10, c8 9→11, dotenv 16→17)

Addresses BIT-14769 acceptance criteria:
  * Dependency scanning integrated into CI pipeline
  * Update policy documented in docs/
  * All packages >2 major versions behind have documented reasons

Paperclip-Issue: BIT-14769
Paperclip-Run: f8099c2b-26da-4c95-b001-a8b57a6d9f6f
2026-04-27 22:47:13 +00:00
Patrícia SantosandPaperclip 06bc5c5c4e fix(security): upgrade fast-xml-parser to v5 and node-cron to v4, apply npm audit fix
Resolves all 7 known vulnerabilities:
- fast-xml-parser ^4.5.1 → ^5.7.2 (GHSA-gh4j-gqv2-49f6: XMLBuilder comment/CDATA injection)
- node-cron ^3.0.3 → ^4.2.1 (GHSA-w5hq-g745-h8pq: uuid buffer bounds check)
- axios, follow-redirects, brace-expansion, picomatch fixed via npm audit fix

API compatibility verified: XMLParser options (ignoreAttributes, trimValues, parseTagValue)
unchanged in v5; cron.schedule() + task.stop() unchanged in v4.
251 tests pass.

Co-Authored-By: Paperclip <[email protected]>
2026-04-27 22:46:15 +00:00