Skip to content

[T-006c] Supply-chain & security CI: Dependabot, pip-audit, pnpm audit, gitleaks, licence check #30

Closed

Description

@CodewithJha

Task T-006c · Milestone M1 — Foundation · Size S · Priority P1 · Epic #1

Implements NFR-SEC-002 · NFR-COST-001

Branch ci/t-006c-supply-chain-security-ci-dependabot — one task = one branch = one PR (doc 32 §6)

Summary

Add .github/dependabot.yml and security + license-check jobs to ci.yml per doc 20 §1/§7 and doc 31 TM-10.

Context / motivation

NFR-SEC-002 (dependency scanning, no secrets) and NFR-COST-001 (all dependencies OSI-licensed) must be enforced automatically, not by review.

Scope

In scope

  • Dependabot weekly for uv (backend), npm (web), github-actions, docker; grouped minor/patch.
  • security job: pip-audit on exported requirements, pnpm audit --prod, gitleaks (full history on push to main, diff on PRs).
  • license-check job: pip-licenses + license-checker/pnpm licenses with an allow-list of OSI licences (scripts/allowed_licenses.txt).

Implementation guidance

  • Fail on high/critical vulnerabilities only, with an audit-ignore file requiring a justification comment per entry.
  • Standards: respect the layering contracts (doc 16 §2) and conventions in doc 34; no hard-coded tunables — thresholds/defaults come from typed settings (doc 27); no magic numbers (ruff PLR2004); public APIs typed (mypy strict) and documented.

Acceptance criteria

  • Dependabot config valid (GitHub shows no errors).
  • Security & licence jobs green on main; a GPL-incompatible or non-OSI dependency would fail.
  • gitleaks finds no secrets in history.
  • Tests listed below added and green in CI; coverage of new code meets the gate in doc 18 §3.
  • Docs, config reference and CHANGELOG Unreleased updated where behaviour, keys or interfaces changed.
  • Definition of Done (doc 32 §3) satisfied.

Tests required

  • Workflow runs.

Dependencies

Blocked by: #28 (T-006a)

Blocks: no other task (leaf)

Parallelization notes

Files / paths owned by this task — avoid editing other paths; shared files (pyproject.toml entry points, cli/main.py, api/routers/__init__.py, router.tsx, docker/compose.yaml, ci.yml) are append-only:

  • .github/dependabot.yml
  • .github/workflows/ci.yml (security, license-check jobs)
  • scripts/allowed_licenses.txt

Adds new jobs only.

Definition of Done

Per doc 32 §3 and AGENTS.md §5: lint, format, mypy strict and import-linter green; tests added and passing; docs updated; PR template completed with Closes #<this issue>; Conventional Commit messages referencing T-006c (doc 16 §6); commits authored only by the repository owner identity (AGENTS.md §4); CI green; reviewer checklist (doc 32 §5.1) satisfied.

References

Design docs: doc 20 §1 · doc 20 §7 · doc 31 §3 · doc 21 §1

Requirements: NFR-SEC-002 · NFR-COST-001 (traceability: doc 28)

External:

Activity

  1. added this to the M1 — Foundation milestone on Nov 19, 2026
  2. added
    type:infraCI, build, deployment infrastructure
    area:ciCI/CD workflows
    area:securitySecurity hardening, supply chain
    priority:P1Required for milestone exit
    taskChild task of a milestone epic
    on Nov 19, 2026
  3. added 6 commits that reference this issue on Nov 19, 2026
    391d7bd
    4c32e08
    bb5ca28
    baabad8
    53d4b46
    4df2649
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ciCI/CD workflowsarea:securitySecurity hardening, supply chainmilestone:M1M1 — Foundationpriority:P1Required for milestone exitsize:S<= 1 daytaskChild task of a milestone epictype:infraCI, build, deployment infrastructure

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions