Skip to content

ci: make the template the source of the org standard - #3

Merged
AlexeyShalaev merged 2 commits into
masterfrom
ci/template-standard
Sep 6, 2026
Merged

ci: make the template the source of the org standard#3
AlexeyShalaev merged 2 commits into
masterfrom
ci/template-standard

Conversation

@AlexeyShalaev

Copy link
Copy Markdown
Contributor

setup_repo.py now configures a new repository to the full standard, not just
branch protection: environments and Pages where the workflows use them,
read-only workflow tokens, squash/merge-commit only with branches deleted on
merge, secret scanning + push protection + Dependabot security updates +
private vulnerability reporting, topics from pyproject keywords, and a
master ruleset (pull requests only, no force-push or deletion, "All checks
passed" required) in place of classic protection. It is idempotent and is
what the existing repositories were aligned with.

The template gets a CI of its own: render with copier and run the generated
project's gate, aggregated into "All checks passed" so the same ruleset can
apply here. Its own CONTRIBUTING, CODE_OF_CONDUCT and SECURITY are added, and
the generated SECURITY.md becomes the org-wide one (draft advisory link, no
version table that goes stale).

Checked locally: rendered with the defaults, the generated project passes make check, make test-unit and uv build; setup_repo.py was run against all 15 other repositories of the org today.

setup_repo.py now configures a new repository to the full standard, not just
branch protection: environments and Pages where the workflows use them,
read-only workflow tokens, squash/merge-commit only with branches deleted on
merge, secret scanning + push protection + Dependabot security updates +
private vulnerability reporting, topics from pyproject keywords, and a
`master` ruleset (pull requests only, no force-push or deletion, "All checks
passed" required) in place of classic protection. It is idempotent and is
what the existing repositories were aligned with.

The template gets a CI of its own: render with copier and run the generated
project's gate, aggregated into "All checks passed" so the same ruleset can
apply here. Its own CONTRIBUTING, CODE_OF_CONDUCT and SECURITY are added, and
the generated SECURITY.md becomes the org-wide one (draft advisory link, no
version table that goes stale).
@AlexeyShalaev
AlexeyShalaev merged commit 61aa8d8 into master Sep 6, 2026
2 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the ci/template-standard branch September 6, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant