feat: package supply chain — inventory, mirrors, drift, vuln scanning #169
Reference in New Issue
Block a user
Delete Branch "feat/pkg-supply-chain"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Complete package supply chain using Gitea's built-in package registry as the single mirror for all package types.
Scripts
data/pkg-manifest.json(7 apt, 48 pypi, 11 npm, 3 CI tools, 8 base images)--network=noneto verify no internet accessInfrastructure
PYPI_INDEX_URLbuild-arg for local registrypkg-supply-chain.ymlruns daily + on Dockerfile/dep changes: inventory → sync → drift → vuln-scan → auto-issuesPipeline spec
dev/pipelines/pkg-supply-chain.yml— CI-agnostic abstract definition.gitea/workflows/pkg-supply-chain.ymlvia gen_config.pyTest plan
pkg_inventory.pyproduces accurate manifest (verified against manual audit)pkg_inventory.py --checkexits 0 when manifest is currentpkg_drift.pyexits 0 with no drift on clean statepkg_mirror_sync.py --type pypiuploads 39 wheels to Gitea (201 for each)pkg_mirror_sync.py --type aptuploads 146 .debs to Gitea (201 for each)/api/packages/homelab/pypi/simple/pyasn1/)/api/packages/homelab/debian/dists/bookworm/Release)pkg_issues.py --dry-runreports no issues when no drift/vulnsCloses #159, #160, #161, #162, #163, #164, #165, #166, #167, #168
Pull request closed