Thank you for considering contributing to ComplianceAsCode Builder! This document provides guidelines and instructions for contributing to this project.
Please be respectful and considerate of others when contributing to this project. We expect all contributors to adhere to our Code of Conduct.
Before contributing, please familiarize yourself with the project structure.
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/cac-builder.git
- Add the upstream repository:
git remote add upstream https://github.com/mitre/cac-builder.git
- Create a branch for your work:
git checkout -b my-feature
- Follow the existing code style and organization
- Add or update documentation as needed
- Add appropriate test cases
- Ensure all scripts are executable:
chmod +x *.sh scripts/*.sh utils/*.sh
- Put general documentation in the
docs/
directory - Update cross-links between documentation files
- Keep README.md focused on getting started quickly
- Run the setup script:
./setup.sh
- Build the container:
docker-compose build
- Run the container:
docker-compose up -d
- Test your changes within the container
- Commit your changes:
git commit -am 'Add feature XYZ'
- Push to your branch:
git push origin my-feature
- Create a pull request from your branch to the upstream main branch
- In your pull request description, explain the changes and the problem they solve
When you submit a pull request, GitHub Actions will:
- Build and test both container types
- Check for basic functionality
For more information on CI/CD workflows, see .github/workflows/README.md.
- Use Markdown for all documentation
- Include code examples where appropriate
- Link to related documentation
- Use section headers for organization
By contributing to this project, you agree that your contributions will be licensed under the project's license.
If you have questions about contributing, please open an issue in the repository.