Contribution Guidelines
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Adding or Modifying Recommendations
Recommendations are stored as YAML files under internal/recommendations/definitions/. Each file maps to a scope (repository, organization, enterprise, ghes). To add a new recommendation:
Open the appropriate YAML file for the scope (e.g.,
internal/recommendations/definitions/repository/security.yaml).Add a new entry following the existing schema:
- id: repo-sec-010 scope: repository title: Short human-readable title category: security severity: high description: What the check evaluates and why it matters. recommendation: Actionable remediation guidance. learnMore: https://docs.github.com/... tags: [security] enabled: trueImplement the corresponding evaluation logic in
internal/scanners/bestpractices/.Add a unit test covering the positive (issue found) and negative (no issue) paths.
Run
make testbefore submitting your pull request.
Contributing to Documentation
The following packages are required to build and run the documentation site locally:
githugo(extended edition, version 0.110.0 or higher)nodejs(version 18 or higher)
Running the Docs Site Locally
Fork the ghqr repository and clone it locally.
Navigate to the
docsfolder:cd ghqr/docsInstall Node modules:
npm installStart the Hugo development server:
hugo serverOpen your browser at
http://localhost:1313/ghqr/.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.