Skip to content

GSA/code-reporting-tools

Repository files navigation

Code Reporting Tools

This repository contains various tools to support GSA's compliance with the Federal Source Code Policy.

gsa-scraper.sh (Scraper)

Builds multiple code.*.json files (one per GSA organization) using the LLNL Scraper tool. As a prerequisite, you need to have scraper installed, which you can accomplish by running pip install -r requirements.txt. You should also have a config file named config.ORG_NAME.json for each GitHub organization you want to scan. See the LLNL Scraper docs for information on the config file format.

combine.sh

Combines multiple organizational code.*.json files into a single agency-wide code.json.

harvest.sh (CodeInventory)

Builds a code.json file using the CodeInventory tool. The codeinventory and codeinventory-github Ruby gems must be installed.

Usage:

# outputs a combined code.json for GSA, 18F, PIF, and USWDS organizations
harvest.sh code.json

count.sh

Summarizes the usage types across all releases.

Usage:

# outputs statistics from an existing code.json file
count.sh code.json

About

Tools for reporting source code information

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages