Summary
Implement the Git Hooks RFC to standardize repository compliance controls, improve code quality, and ensure required validation checks are consistently enforced before code is committed or pushed. This initiative will align development practices across teams and reduce the risk of non-compliant changes entering shared repositories. The RFC is documented in the BC Gov Connect discussion.
Description
Implement the Git Hooks RFC and associated compliance controls across applicable repositories.
The objective is to establish a consistent developer workflow that automatically validates code quality, security, and repository standards before changes are committed or pushed. This work should align with emerging BC Government developer guardrail practices that emphasize enforcement of repository standards and validation checks through local automation.
Business Value
- Improves compliance with organizational development standards.
- Reduces non-compliant code entering shared repositories.
- Improves code quality and consistency across teams.
- Provides earlier feedback to developers, reducing rework and CI/CD failures.
- Supports secure and reliable software delivery practices.
- Establishes a common developer experience across participating teams.
Acceptance Criteria
- Git Hooks RFC requirements have been reviewed and mapped to implementation tasks.
- Repositories within scope have standardized Git hooks configured. (https://github.com/topics/bcregistry)
- Required compliance checks execute successfully before commits and/or pushes.
- Developer onboarding documentation includes hook installation and usage instructions.
- Implementation has been validated across supported development platforms.
- CI/CD pipelines continue to function without regression.
- Product teams have been engaged and informed of workflow changes.
- Any approved exceptions, limitations, or accommodations are documented.
- Compliance improvements and adoption metrics are documented in the ticket.
Definition of Done
- Git hook implementation committed to source control.
- Standardized installation mechanism documented and available to development teams.
- Compliance checks execute successfully in local development environments.
- CI/CD pipeline validation completes successfully.
- Documentation updated to reflect the new workflow and developer responsibilities.
- Product teams notified of implementation and support resources.
- Compliance posture is improved through automated enforcement of repository standards.
- Lessons learned, risks, and future enhancement opportunities are documented.
Example
https://github.com/bcgov/connect
https://github.com/bcgov/connect/blob/feature-design-01/.gitleaks.toml
Summary
Implement the Git Hooks RFC to standardize repository compliance controls, improve code quality, and ensure required validation checks are consistently enforced before code is committed or pushed. This initiative will align development practices across teams and reduce the risk of non-compliant changes entering shared repositories. The RFC is documented in the BC Gov Connect discussion.
Description
Implement the Git Hooks RFC and associated compliance controls across applicable repositories.
The objective is to establish a consistent developer workflow that automatically validates code quality, security, and repository standards before changes are committed or pushed. This work should align with emerging BC Government developer guardrail practices that emphasize enforcement of repository standards and validation checks through local automation.
Business Value
Acceptance Criteria
Definition of Done
Example
https://github.com/bcgov/connect
https://github.com/bcgov/connect/blob/feature-design-01/.gitleaks.toml