Skip to content

CommerceGov/Code-Catalog-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process

Open source project information is pulled from a list of official Commerce Github organizations for publication to Commerce.gov/code.json.

Additions to the list of Commerce organizations is possible through Github pull requests to this repository.

For project additions from sources other than Github, a process will be defined and added here in the future.

How can I add my Commerce Organization's Github project?

  1. Ensure your office's official Github organization is in conf.yml. If not see Adding your official Github organization.
  2. Publish your project to a public Github repository under your official organization.
  3. Include a .codeinventory.json or .codeinventory.yml in your project for more fine-grained control over metadata or to include details not available in Github metadata.

If your project is not included in the code.json published to Commerce.gov, please submit an issue.

Adding your official Github organization

  1. Fork this repository
  2. Add your Github organization to conf.yml in the organizations array
  3. Commit and push the changes to your Fork
  4. Submit a pull request to the upstream project

Code catalog generator

Tools for generating the Department of Commerce code catalog for OMB M-16-21.

The included generate.rb script currently leverages GSA's CodeInventory tool to generate a code catalog from one or more organization's GitHub accounts.

Dependencies

Usage

  1. Edit config.yml to identify the agency name and list GitHub organizations to be harvested.
  2. Create a secrets.yml, using secrets.yml.sample as a template, to provide a GitHub personal access token.
  3. Execute the generate.rb script and pipe the output (code catalog) to a file:
ruby generate.rb > code.json

About

Tools and process for generating the Commerce code catalog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages