Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.93 KB

File metadata and controls

45 lines (33 loc) · 1.93 KB

General Content Contribution Workflow

This page outlines the overall process for contributing content to the CoSAI Risk Map.

Contribution Steps

  1. Create a GitHub issue to track your work (see Best Practices)
  2. Read the repository-wide CONTRIBUTING.md and follow the Content Update Branching Process for all content authoring
  3. Set up pre-commit hooks (see Setup & Prerequisites)
  4. Make content changes per the guides below (components, controls, risks, personas)
  5. Validate your changes against all validation rules:
    • JSON Schema validation
    • Prettier YAML formatting
    • Ruff Python linting (if modifying Python files)
    • Component edge consistency
    • Control-to-risk reference consistency
  6. Open a PR against the develop branch describing the Risk Map updates and validation performed
    • GitHub Actions will automatically run the same validations on your PR
    • Address any CI failures before requesting review

Content Type Guides

Choose the guide that matches what you're adding:

Validation Tools

See Validation Tools for detailed information on:

  • Manual edge validation and graph generation
  • Control-to-risk reference validation
  • Markdown table generation
  • Prettier formatting
  • Ruff linting

CI/CD

See CI/CD Validation for information on automated validation that runs on pull requests.


Next Steps: Choose a content type guide above to get started with your contribution.