Repository navigation
feat(governance): reuse CI gate and stage automatic baseline onboarding - #106
Merged
Merged
Conversation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
vitormattos
marked this pull request as ready for review
November 4, 2026 17:56
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Member
Author
Post-merge governance verification (2026-11-04)Completed follow-ups:
Automatic onboarding remains safely disabled:
No PRs remain open in these two repositories. The remaining operational activation requires provisioning the dedicated App credentials, reviewing the granted administration permission and then explicitly enabling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Use LibreCode's existing GitHub Governance engine for organization-standard protection on public repositories, while keeping repository-specific rules and CI rollout independently reviewable.
Changes
Reusable CI gate (agent-skills)
agent-skills-cipolicy with reusablerequired-ci-gate-active.Require CIcontract as the existing disabledrequired-ci-gate, changing only enforcement.LibreCodeCoop/agent-skills, whoseci-requiredcheck was verified on the mergedagent-skills#1. Inheritprotected-branchesfrom organization defaults.release-toolandnextcloud-docker-developmenton the disabled gate; do not globally activate CI requirements.Opt-in automatic baseline onboarding
github-governance-auto-onboard.yml, scheduled twice hourly and manually dispatchable, disabled untilAUTO_RULESET_ONBOARDING_ENABLED=true.ruleset-auto-onboardenvironment and invoke the existing reviewedgithub-governanceaction withonboard-only=true.Validation
git diff --check: passed.akaunting-field-studio; existing rulesets left untouched. No remote rules were changed.Activation / governance restrictions
Do not merge automatically or apply any ruleset as part of this PR.
After reviewing and merging the code:
ruleset-auto-onboardenvironment onmain, using a dedicated GitHub App credential (AUTO_RULESET_APP_CLIENT_IDvariable,AUTO_RULESET_APP_PRIVATE_KEYsecret). Administration write and Contents read are needed; tokens are restricted per repository.AUTO_RULESET_ONBOARDING_ENABLED=trueas a repository variable.ruleset-syncApply foragent-skills(onboard_only=false) to activateRequire CI. That existing protected environment is not altered by this PR.The scheduled job cannot guarantee immediate protection from the moment a repository is created, and private repositories remain outside the GitHub Free support scope.
Nextcloud translation bot regression audit
Historical incidents: LibreSign/libresign#8399, #9172, LibreCodeCoop/profile_fields#148 and LibreCodeCoop/extract#148.
nextcloud-bot(GitHub ID20296731), requiringbypass_mode: alwaysfor direct Transifex pushes.LibreSign/libresignallows this actor in both active rulesets (Protect default and stable branchesandRequire LibreSign DCO);LibreCodeCoop/profile_fieldsandLibreCodeCoop/extractallow it in their active branch-protection rulesets.nextcloud-bottranslation commits in all three repositories, including LibreSign on November 4, 2026.protected-branchesandconditions.when.file_exists=appinfo/info.xmlconditional bypass remain unchanged.tests/test_nextcloud_translation_bot_contract.py(5 regression tests) covering default inheritance, explicit Nextcloud bot bypass, absence of an unconditional CI/DCO gate, scoping of the active CI policy, and creation-only LibreCode provisioning. Full Python suite now has 102 passing tests locally.Safety boundary: a future independently added CI/DCO ruleset could still block direct pushes if it lacks the same bot bypass. Such policy changes must be reviewed separately. This PR neither modifies existing rulesets nor activates the new provisioning workflow automatically.