Skip to content

Auto-discover and verify new gov dependencie - #136

Open
haseebmalik18 wants to merge 8 commits into
DSACMS:devfrom
haseebmalik18:dsacms/haseeb/auto-update-gov-dependencies
Open

Auto-discover and verify new gov dependencie#136
haseebmalik18 wants to merge 8 commits into
DSACMS:devfrom
haseebmalik18:dsacms/haseeb/auto-update-gov-dependencies

Conversation

@haseebmalik18

@haseebmalik18 haseebmalik18 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds the tooling to keep src/gov-dependencies.data.ts updated on its own instead of by hand. Depends on #126, merge that first since this builds on its data and logic split.

Changes

  • Crawls an allowlist of federal GitHub and npm orgs and reads their repos' manifests and READMEs to find packages.
  • Verifies each candidate two ways before trusting it: the package's registry metadata has to point at a repo in an allowlisted org, and that repo has to declare the package name in its package.json, pyproject.toml, or README
    install command.
  • Pulls npm org listings as a second source. Packages under an agency's npm org are proven by npm's access controls, so they skip verification.
  • Caches repos by last push time, so after the first run it only rechecks repos that actually changed.
  • Only ever adds entries, never removes. Anything it can't verify is flagged for a maintainer to check instead of being added silently.
  • Allowlist is 186 federal orgs, checked against CISA's official .gov registry and GSA's federal org list.

Notes

  • The weekly workflow and CODEOWNERS reviewer auto-assignment come in a follow up PR
  • Discovery is kept modular so the code-gov inventory can slot in as the data source in Phase 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant