Repository navigation
Description
Task
T-006c· Milestone M1 — Foundation · Size S · Priority P1 · Epic #1Implements 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. securityjob:pip-auditon exported requirements,pnpm audit --prod, gitleaks (full history on push to main, diff on PRs).license-checkjob:pip-licenses+license-checker/pnpm licenseswith an allow-list of OSI licences (scripts/allowed_licenses.txt).
Implementation guidance
- Fail on high/critical vulnerabilities only, with an
audit-ignorefile 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
Unreleasedupdated 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:
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsDone
Activity
ci.yml: lint, typecheck, backend unit/property/contract matrix, integration, web tests #28ci: supply-chain gates - Dependabot, pip-audit/pnpm audit, gitleaks, …
ci(deps): update Dependabot docker comment now that docker/ exists (T…
fix(ci): fail closed when pnpm audit returns an error object (T-006c)
ci: supply-chain gates - Dependabot, pip-audit/pnpm audit, gitleaks, …
ci(deps): update Dependabot docker comment now that docker/ exists (T…
fix(ci): fail closed when pnpm audit returns an error object (T-006c)