-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add requirements.txt #11
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,42 @@ | ||
# codejson-index-generator | ||
|
||
Script to create an indexed code.json for agencies. | ||
|
||
## About the Project | ||
|
||
The 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. | ||
|
||
### Project Vision | ||
|
||
To streamline the process of code.gov compliance for federal agencies by automating the collection and aggregation of code.json files across multiple GitHub organizations. | ||
|
||
### Project Mission | ||
|
||
To provide agencies with a reliable, efficient tool for maintaining their code.gov inventory while reducing manual effort and potential for errors in the process. | ||
|
||
## Core Team | ||
|
||
An 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. | ||
|
||
<!-- | ||
## Documentation Index | ||
<!-- | ||
## Documentation Index | ||
|
||
TODO: 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. | ||
|
||
**{list of .md at top directory and descriptions}** | ||
**{list of .md at top directory and descriptions}** | ||
--> | ||
|
||
<!-- | ||
<!-- | ||
## Repository Structure | ||
|
||
TODO: 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. | ||
|
||
**{list directories and descriptions}** | ||
**{list directories and descriptions}** | ||
|
||
--> | ||
|
||
<!-- | ||
# Development and Software Delivery Lifecycle | ||
<!-- | ||
# Development and Software Delivery Lifecycle | ||
The 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). | ||
--> | ||
|
||
|
@@ -42,26 +46,30 @@ The following guide is for members of the project team who have access to the re | |
|
||
- Python 3.x | ||
- GitHub Personal Access Token (optional, but highly recommended for higher rate limits) | ||
> **_Create a PAT:_** GitHub -> Settings -> Developer Settings -> Personal Access Tokens | ||
> **_Create a PAT:_** GitHub -> Settings -> Developer Settings -> Personal Access Tokens | ||
|
||
### Installation | ||
|
||
1. Clone the repository: | ||
|
||
```bash | ||
git clone ... | ||
cd codejson-index-generator | ||
``` | ||
|
||
2. Install required dependencies: | ||
|
||
```bash | ||
pip install PyGithub | ||
pip install -r requirements.txt | ||
``` | ||
|
||
1. Set up your GitHub Personal Access Token: | ||
|
||
```bash | ||
export GITHUB_KEY="your-token-here" | ||
``` | ||
> **_NOTE:_** _Use of GitHub PAT is highly recommened due to rate limiting._ | ||
|
||
> **_NOTE:_** _Use of GitHub PAT is highly recommened due to rate limiting._ | ||
|
||
### Usage | ||
|
||
|
@@ -71,17 +79,20 @@ The script can be run from the command line with the following options: | |
python main.py --agency AGENCY_NAME --orgs "org1,org2" --output code.json --version VERSION_NUMBER | ||
``` | ||
|
||
> **_NOTE:_** _Seperate organizations by comma without any spaces!_ | ||
> **_NOTE:_** _Seperate organizations by comma without any spaces!_ | ||
|
||
##### Required arguments: | ||
|
||
- `--agency`: The name of your agency | ||
- `--orgs`: Comma-separated list of GitHub organizations to scan | ||
|
||
##### Optional arguments: | ||
|
||
- `--output`: Output filename (default: code.json) | ||
- `--version`: Code.json file version (default: 1.0.0) | ||
|
||
##### Example: | ||
|
||
```bash | ||
python3 main.py --agency CMS --orgs "DSACMS,CMSgov,CMS-Enterprise" --output code.json --version 1.0.0 | ||
``` | ||
|
@@ -123,11 +134,11 @@ The codejson-index-generator team is taking a community-first and open source ap | |
|
||
We 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. | ||
|
||
We 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. | ||
We 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. | ||
|
||
### Community Guidelines | ||
|
||
Principles 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. | ||
Principles 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. | ||
|
||
<!-- | ||
## Governance | ||
|
@@ -151,13 +162,13 @@ questions, just [shoot us an email](mailto:[email protected]). | |
|
||
### Security and Responsible Disclosure Policy | ||
|
||
*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. | ||
_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. | ||
|
||
For more information about our Security, Vulnerability, and Responsible Disclosure Policies, see [SECURITY.md](SECURITY.md). | ||
|
||
### Software Bill of Materials (SBOM) | ||
|
||
A Software Bill of Materials (SBOM) is a formal record containing the details and supply chain relationships of various components used in building software. | ||
A Software Bill of Materials (SBOM) is a formal record containing the details and supply chain relationships of various components used in building software. | ||
|
||
In 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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PyGithub>=1.59,<2.0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯