A pyrig plugin that integrates OpenSSF functionality.
pyrig-openssf is a pyrig plugin that adds
OpenSSF Scorecard analysis and generates security metadata for your project.
- Scorecard analysis - checks repository security practices and publishes results to OpenSSF Scorecard and GitHub code scanning.
- Health-check integration - fails the health-check workflow if the analyzed ref has any open Scorecard alerts, including existing findings. Fixed and dismissed alerts do not block the check.
- Best Practices proposals - generates
.bestpractices.jsonwith proposed answers and evidence links for Best Practices and Baseline assessments. - Security Insights metadata - generates
security-insights.ymldescribing the project, repository, security policies, and tooling. - OpenSSF badges - adds Scorecard, Best Practices, and Baseline badges.
Add the plugin as a development dependency, then synchronize your project:
uv add pyrig-openssf --dev
uv run pyrig syncThe plugin requires Python 3.12 or newer.
Generated assessment answers are overridable proposals, not automatic certification. Review them before submitting an assessment. See the documentation for badge setup.
Full documentation, including the auto-generated API reference, is available on the documentation site.