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
Owner

Summary

Addresses BIT-14769 acceptance criteria for dependency management and security.

Security audit (previous commit):

  • Fixed 7 CVEs (1 high, 6 moderate) via npm audit fix
  • Upgraded fast-xml-parser 4→5, node-cron 3→4, plus transitive fixes for axios/follow-redirects/picomatch/uuid

This PR also adds:

  • npm audit --audit-level=high step in CI (test.yml) — builds fail on high/critical CVEs
  • docs/dependency-update-policy.md — documents update cadence, major-version holdbacks with reasons, quarterly runbook

Acceptance Criteria Status

  • ✅ All critical/high CVEs remediated (0 remaining)
  • ✅ Dependency scanning integrated into CI pipeline
  • ✅ Update policy documented in docs/
  • ✅ All packages >2 major versions behind have documented holdback reasons (openai, eslint, c8)

Test plan

  • CI test workflow passes (lint + audit + tests)
  • npm audit --audit-level=high returns 0 vulnerabilities
  • Review docs/dependency-update-policy.md for accuracy
## Summary Addresses BIT-14769 acceptance criteria for dependency management and security. **Security audit (previous commit):** - Fixed 7 CVEs (1 high, 6 moderate) via `npm audit fix` - Upgraded fast-xml-parser 4→5, node-cron 3→4, plus transitive fixes for axios/follow-redirects/picomatch/uuid **This PR also adds:** - `npm audit --audit-level=high` step in CI (`test.yml`) — builds fail on high/critical CVEs - `docs/dependency-update-policy.md` — documents update cadence, major-version holdbacks with reasons, quarterly runbook ## Acceptance Criteria Status - ✅ All critical/high CVEs remediated (0 remaining) - ✅ Dependency scanning integrated into CI pipeline - ✅ Update policy documented in `docs/` - ✅ All packages >2 major versions behind have documented holdback reasons (openai, eslint, c8) ## Test plan - [ ] CI test workflow passes (lint + audit + tests) - [ ] `npm audit --audit-level=high` returns 0 vulnerabilities - [ ] Review `docs/dependency-update-policy.md` for accuracy
spark added 2 commits 2026-04-27 23:47:42 +01:00
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]>
chore(deps): add npm audit CI gate and dependency update policy
ai-news-writer-ci / test (pull_request) Failing after 28s
e868644f6f
- 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
spark scheduled this pull request to auto merge when all checks succeed 2026-04-30 10:33:24 +01:00
spark added 1 commit 2026-05-01 01:57:24 +01:00
spark added 1 commit 2026-05-01 05:00:53 +01:00
Merge branch 'main' into task/BIT-14769-dependency-updates
ai-news-writer-ci / test (pull_request) Failing after 33s
29c9c5fda1
spark added 1 commit 2026-05-01 20:50:39 +01:00
fix(ci,writer): sync Gitea test workflow; export OpenAI test helpers
ai-news-writer-ci / test (pull_request) Successful in 43s
3999d6dcff
paperclip-review-bot left a comment
Member

CI green; dependency PR — approve.

CI green; dependency PR — approve.
paperclip-merge-bot merged commit 625318b257 into main 2026-05-01 20:51:49 +01:00
Sign in to join this conversation.