{"id":24306584,"url":"https://github.com/dsacms/codejson-index-generator","last_synced_at":"2025-07-06T22:07:34.711Z","repository":{"id":271631087,"uuid":"913528396","full_name":"DSACMS/codejson-index-generator","owner":"DSACMS","description":"Script to create an indexed code.json","archived":false,"fork":false,"pushed_at":"2025-06-18T18:59:25.000Z","size":81,"stargazers_count":1,"open_issues_count":4,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-18T19:50:44.164Z","etag":null,"topics":["cmsoss-tier3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DSACMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS.md","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-07T21:26:42.000Z","updated_at":"2025-06-18T18:59:29.000Z","dependencies_parsed_at":"2025-04-15T19:38:12.842Z","dependency_job_id":"9b07e518-cd3a-4a2e-8851-8b5f7b94e56c","html_url":"https://github.com/DSACMS/codejson-index-generator","commit_stats":null,"previous_names":["dsacms/codejson-index-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DSACMS/codejson-index-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSACMS%2Fcodejson-index-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSACMS%2Fcodejson-index-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSACMS%2Fcodejson-index-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSACMS%2Fcodejson-index-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DSACMS","download_url":"https://codeload.github.com/DSACMS/codejson-index-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSACMS%2Fcodejson-index-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260624962,"owners_count":23038149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmsoss-tier3"],"created_at":"2025-01-17T03:37:33.048Z","updated_at":"2025-07-06T22:07:34.705Z","avatar_url":"https://github.com/DSACMS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codejson-index-generator\n\nScript to create an indexed code.json for agencies.\n\n## About the Project\n\nThe GitHub Code.json Index Generator is a Python-based tool that helps federal agencies compile and maintain their code.json files for code.gov compliance. It automatically scans specified GitHub organizations, finds repositories containing code.json files, and combines them into a single indexed file.\n\n### Project Vision\n\nTo streamline the process of code.gov compliance for federal agencies by automating the collection and aggregation of code.json files across multiple GitHub organizations.\n\n### Project Mission\n\nTo provide agencies with a reliable, efficient tool for maintaining their code.gov inventory while reducing manual effort and potential for errors in the process.\n\n## Core Team\n\nAn up-to-date list of core team members can be found in [MAINTAINERS.md](MAINTAINERS.md). At this time, the project is still building the core team and defining roles and responsibilities. We are eagerly seeking individuals who would like to join the community and help us define and fill these roles.\n\n\u003c!--\n## Documentation Index\n\nTODO: This is a like a 'table of contents\" for your documentation. Tier 0/1 projects with simple README.md files without many sections may or may not need this, but it is still extremely helpful to provide \"bookmark\" or \"anchor\" links to specific sections of your file to be referenced in tickets, docs, or other communication channels.\n\n**{list of .md at top directory and descriptions}**\n --\u003e\n\n\u003c!--\n## Repository Structure\n\nTODO: Using the \"tree -d\" command can be a helpful way to generate this information, but, be sure to update it as the project evolves and changes over time.\n\n**{list directories and descriptions}**\n\n--\u003e\n\n\u003c!--\n# Development and Software Delivery Lifecycle\nThe following guide is for members of the project team who have access to the repository as well as code contributors. The main difference between internal and external contributions is that external contributors will need to fork the project and will not be able to merge their own pull requests. For more information on contributing, see: [CONTRIBUTING.md](./CONTRIBUTING.md).\n--\u003e\n\n## Local Development\n\n### Prerequisites\n\n- Python 3.x\n- GitHub Personal Access Token (optional, but highly recommended for higher rate limits)\n  \u003e **_Create a PAT:_** GitHub -\u003e Settings -\u003e Developer Settings -\u003e Personal Access Tokens\n\n### Installation\n\n1. Clone the repository:\n\n```bash\ngit clone ...\ncd codejson-index-generator\n```\n\n2. Install required dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n1. Set up your GitHub Personal Access Token:\n\n```bash\nexport GITHUB_KEY=\"your-token-here\"\n```\n\n\u003e **_NOTE:_** _Use of GitHub PAT is highly recommened due to rate limiting._\n\n### Usage\n\nThe script can be run from the command line with the following options:\n\n```bash\npython main.py --agency AGENCY_NAME --orgs \"org1,org2\" --output code.json --version VERSION_NUMBER\n```\n\n\u003e **_NOTE:_** _Seperate organizations by comma without any spaces!_\n\n##### Required arguments:\n\n- `--agency`: The name of your agency\n- `--orgs`: Comma-separated list of GitHub organizations to scan\n\n##### Optional arguments:\n\n- `--output`: Output filename (default: code.json)\n- `--version`: Code.json file version (default: 1.0.0)\n\n##### Example:\n\n```bash\npython3 main.py --agency CMS --orgs \"DSACMS,CMSgov,CMS-Enterprise\" --output code.json --version 1.0.0\n```\n\n## Coding Style and Linters\n\n\u003c!-- TODO - Add the repo's linting and code style guidelines --\u003e\n\nEach application has its own linting and testing guidelines. Lint and code tests are run on each commit, so linters and tests should be run locally before committing.\n\n\u003c!--\n## Branching Model\n\nTODO - with example below:\nThis project follows [trunk-based development](https://trunkbaseddevelopment.com/), which means:\n\n* Make small changes in [short-lived feature branches](https://trunkbaseddevelopment.com/short-lived-feature-branches/) and merge to `main` frequently.\n* Be open to submitting multiple small pull requests for a single ticket (i.e. reference the same ticket across multiple pull requests).\n* Treat each change you merge to `main` as immediately deployable to production. Do not merge changes that depend on subsequent changes you plan to make, even if you plan to make those changes shortly.\n* Ticket any unfinished or partially finished work.\n* Tests should be written for changes introduced, and adhere to the text percentage threshold determined by the project.\n\nThis project uses **continuous deployment** using [Github Actions](https://github.com/features/actions) which is configured in the [./github/workflows](.github/workflows) directory.\n\nPull-requests are merged to `main` and the changes are immediately deployed to the development environment. Releases are created to push changes to production.\n--\u003e\n\n## Contributing\n\nThank you for considering contributing to an Open Source project of the US Government! For more information about our contribution guidelines, see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Codeowners\n\nThe contents of this repository are managed by **{responsible organization(s)}**. Those responsible for the code and documentation in this repository can be found in [CODEOWNERS.md](CODEOWNERS.md).\n\n## Community\n\nThe codejson-index-generator team is taking a community-first and open source approach to the product development of this tool. We believe government software should be made in the open and be built and licensed such that anyone can download the code, run it themselves without paying money to third parties or using proprietary software, and use it as they will.\n\nWe know that we can learn from a wide variety of communities, including those who will use or will be impacted by the tool, who are experts in technology, or who have experience with similar technologies deployed in other spaces. We are dedicated to creating forums for continuous conversation and feedback to help shape the design and development of the tool.\n\nWe also recognize capacity building as a key part of involving a diverse open source community. We are doing our best to use accessible language, provide technical and process documents, and offer support to community members with a wide variety of backgrounds and skillsets.\n\n### Community Guidelines\n\nPrinciples and guidelines for participating in our open source community are can be found in [COMMUNITY_GUIDELINES.md](COMMUNITY_GUIDELINES.md). Please read them before joining or starting a conversation in this repo or one of the channels listed below. All community members and participants are expected to adhere to the community guidelines and code of conduct when participating in community spaces including: code repositories, communication channels and venues, and events.\n\n\u003c!--\n## Governance\nInformation about how the **{project_name}** community is governed may be found in [GOVERNANCE.md](GOVERNANCE.md).\n\n\u003c!--\n## Feedback\nIf you have ideas for how we can improve or add to our capacity building efforts and methods for welcoming people into our community, please let us know at **{contact email}**. If you would like to comment on the tool itself, please let us know by filing an **issue on our GitHub repository.**\n\n## Glossary\nInformation about terminology and acronyms used in this documentation may be found in [GLOSSARY.md](GLOSSARY.md).\n--\u003e\n\n## Policies\n\n### Open Source Policy\n\nWe adhere to the [CMS Open Source\nPolicy](https://github.com/CMSGov/cms-open-source-policy). If you have any\nquestions, just [shoot us an email](mailto:opensource@cms.hhs.gov).\n\n### Security and Responsible Disclosure Policy\n\n_Submit a vulnerability:_ Vulnerability reports can be submitted through [Bugcrowd](https://bugcrowd.com/cms-vdp). Reports may be submitted anonymously. If you share contact information, we will acknowledge receipt of your report within 3 business days.\n\nFor more information about our Security, Vulnerability, and Responsible Disclosure Policies, see [SECURITY.md](SECURITY.md).\n\n### Software Bill of Materials (SBOM)\n\nA Software Bill of Materials (SBOM) is a formal record containing the details and supply chain relationships of various components used in building software.\n\nIn the spirit of [Executive Order 14028 - Improving the Nation’s Cyber Security](https://www.gsa.gov/technology/it-contract-vehicles-and-purchasing-programs/information-technology-category/it-security/executive-order-14028), a SBOM for this repository is provided here: https://github.com/DSACMS/codejson-index-generator/network/dependencies.\n\nFor more information and resources about SBOMs, visit: https://www.cisa.gov/sbom.\n\n## Public domain\n\nThis project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/) as indicated in [LICENSE](LICENSE).\n\nAll contributions to this project will be released under the CC0 dedication. By submitting a pull request or issue, you are agreeing to comply with this waiver of copyright interest.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsacms%2Fcodejson-index-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsacms%2Fcodejson-index-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsacms%2Fcodejson-index-generator/lists"}