Skip to content

Commit 76d7e95

Browse files
Merge pull request #35 from DSACMS/DSACMS/nat/private-repos
Docs: Add docs on private repositories
2 parents a33d04f + f04d61e commit 76d7e95

1 file changed

Lines changed: 32 additions & 10 deletions

File tree

docs/procedures.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,28 @@ The CMS Open Source Program Office developed various tools that can automate det
44

55
> **Learn more about our SHARE IT Act tools**: https://dsacms.github.io/share-it-act-lp/
66
7-
## Creating a code.json file
7+
**Procedures for Project Teams**:
8+
[Creating a code.json file in your repository](#creating-a-codejson-file-in-your-repository)
9+
- [code.json generator form site](#using-form-site)
10+
- [automated-codejson-generator GitHub Action](#using-automated-codejson-generator)
11+
- [repo-scaffolder](#using-repo-scaffolder)
812

9-
### Using repo-scaffolder
10-
11-
[repo-scaffolder](https://github.com/DSACMS/repo-scaffolder) is a tool for creating repositories that adhere to repository hygiene standards. It provides file templates detailing project information, contributing guidance, maintainer roles, community involvement, and **project metadata**.
13+
***Procedures for Agencies**:
14+
[Generate an agency-index.json file for submission](#generate-an-agency-indexjson-file-for-agencies)
15+
- [codejson-index-generator](#using-codejson-index-generator)
1216

13-
For repositories created using repo-scaffolder, the tool can assist with adding code.json to the repository. Navigate to your project's `.github` directory and run the following cookiecutter command. You will be asked questions about the project in order to collect and store this metadata in code.json.
1417

15-
```
16-
cookiecutter . --directory=codejson
17-
```
18-
19-
For more information on repo-scaffolder, check out the [documentation](https://github.com/DSACMS/repo-scaffolder?tab=readme-ov-file#metadata-collection-using-codejson).
18+
## Creating a code.json file in your repository
2019

2120
### Using form site
21+
*This method works best for all repositories on all platforms.*
2222

2323
Users can fill out a web form that creates a code.json file to be uploaded to a project's source code repository: https://dsacms.github.io/codejson-generator.
2424

25+
26+
2527
### Using automated-codejson-generator
28+
*This method works best for repositories hosted on GitHub with GitHub Actions enabled.*
2629

2730
The [automated-codejson-generator](https://github.com/DSACMS/automated-codejson-generator) is a GitHub Action that automatically generates and maintains code.json files for federal open source repositories. It ensures schema consistency and automates metadata calculations, including:
2831

@@ -31,6 +34,19 @@ The [automated-codejson-generator](https://github.com/DSACMS/automated-codejson-
3134
- Repository information
3235
- Timestamps
3336

37+
### Using repo-scaffolder
38+
*This method is most effective when GitHub Actions are unavailable, allowing cookiecutter to be installed locally with Python.*
39+
40+
[repo-scaffolder](https://github.com/DSACMS/repo-scaffolder) is a tool for creating repositories that adhere to repository hygiene standards. It provides file templates detailing project information, contributing guidance, maintainer roles, community involvement, and **project metadata**.
41+
42+
For repositories created using repo-scaffolder, the tool can assist with adding code.json to the repository. Navigate to your project's `.github` directory and run the following cookiecutter command. You will be asked questions about the project in order to collect and store this metadata in code.json.
43+
44+
```
45+
cookiecutter . --directory=codejson
46+
```
47+
48+
For more information on repo-scaffolder, check out the [documentation](https://github.com/DSACMS/repo-scaffolder?tab=readme-ov-file#metadata-collection-using-codejson).
49+
3450
#### Setting up the GitHub Action
3551

3652
To use the automated-codejson-generator in your repository, create a workflow file with the following configuration:
@@ -74,10 +90,16 @@ jobs:
7490
7591
This action will create a pull request to add or update a compliant code.json file in your repository.
7692
93+
## Generate an agency-index.json file for agencies
94+
7795
### Using codejson-index-generator
7896
7997
The [codejson-index-generator](https://github.com/DSACMS/codejson-index-generator) is a Python-based tool that helps federal agencies compile and maintain their code.json files for code.gov compliance. It scans specified GitHub organizations, finds repositories containing code.json files, and combines them into a single indexed file.
8098
99+
The tool can be run using the [index-generator-website](https://dsacms.github.io/index-generator-website/).
100+
101+
Alternatively, follow the instructions below to run locally.
102+
81103
#### Prerequisites
82104
83105
- Python 3.x

0 commit comments

Comments
 (0)