Skip to content

feat(governance): migrate remaining required workflows to maintained automation - #676

Merged
devantler merged 2 commits into
mainfrom
codex/retire-workflow-sources-237-r23
Oct 20, 2026
Merged

devantler merged 2 commits into
mainfrom
codex/retire-workflow-sources-237-r23

Conversation

@devantler

Copy link
Copy Markdown
Contributor

🤖 Generated by the Agentic Engineer

Why

Required checks still depend on the legacy automation repository, preventing its safe deletion.

What

Move the remaining six required-workflow policies to maintained automation while preserving their existing protections and repository scope.

Part of #237

@github-code-quality

github-code-quality Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: Go, C#

Go / code-coverage/test

main 77cfa9c codex/retire-workflo... 27dfac0 +/-
50% 50% 0%

C# / code-coverage/dotnet

main 77cfa9c codex/retire-workflo... 27dfac0 +/-
100% 100% 0%

Go / code-coverage/go

main 77cfa9c codex/retire-workflo... 27dfac0 +/-
50% 50% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 20, 2026 20:34 UTC

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Validated head b83c62e105121d1531108d3f24506752a16a2b65. The complete settings census found six remaining legacy required-workflow rules. After #675/v7.21.0 applied, all six complete native policies were captured independently of these desired manifests; the committed snapshots exactly match that readback and are integrity-bound by the regression.

The regression first failed against the old policies, then passed after complete backfill and the reviewed source switch. It compares every declared policy field with the observed state, permitting only the maintained repository source and required provider encodings. It also rejects an additional undeclared legacy source. All 113 refusal controls, both template-specific guards, the existing trusted-regression guard and all fourteen baseline commands pass; shellcheck passes on the changed tests.

Self-review: selectors, default-branch scope, bypasses, creation behavior, workflow paths and refs are preserved. The four imported rules gain Update only after their complete observations; they gain no Create, Delete or LateInitialize authority. The two existing managed template rules retain their previous lifecycle. No direct settings write or new integration is involved.

This is source/configuration evidence, not a native migration receipt. After publication, independently read back all changed rules and exercise an ordinary qualifying consumer PR per rule with the actual required jobs selected and completed. Keep #237 open until those gates pass, and keep the legacy repository available throughout consumer migration.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: f5b3a9e3-cd1b-4336-8f9d-c2d20f2d7f73
📥 Commits

Reviewing files that changed from the base of the PR and between 77cfa9c and 27dfac0.

📒 Files selected for processing: 14
  • .github/workflows/ci.yaml
  • AGENTS.md
  • deploy/organization-rulesets/README.md
  • deploy/organization-rulesets/kustomization.yaml
  • deploy/organization-rulesets/require-dotnet-template-tests.yaml
  • deploy/organization-rulesets/require-go-template-validation.yaml
  • deploy/organization-rulesets/require-workflows-auto-merge.yaml
  • deploy/organization-rulesets/require-workflows-dependency-review.yaml
  • deploy/organization-rulesets/require-workflows-dotnet.yaml
  • deploy/organization-rulesets/require-workflows-vulnerability-scan.yaml
  • tests/dotnet-template-tests-ruleset.sh
  • tests/fixtures/legacy-workflow-rulesets-observed.jsonl
  • tests/go-template-validation-ruleset.sh
  • tests/legacy-workflow-observation.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
🧰 Additional context used
📚 Code guidelines: 3
deploy/organization-rulesets/README.md — auto-discovered
actions/CONTRIBUTING.md — auto-discovered
AGENTS.md — auto-discovered
📓 Path-based instructions: 5
Applicability reference: AGENTS.md: # AGENTS.md — devantler-tech/.github (GitHub-as-code) The existing organization CodeQL finding rule is imported Observe-only.

📄 CodeRabbit inference engine (deploy/organization-rulesets/README.md)

Files:

  • deploy/organization-rulesets/require-workflows-auto-merge.yaml
  • deploy/organization-rulesets/kustomization.yaml
  • deploy/organization-rulesets/require-workflows-dotnet.yaml
  • deploy/organization-rulesets/require-workflows-dependency-review.yaml
  • deploy/organization-rulesets/require-dotnet-template-tests.yaml
  • deploy/organization-rulesets/require-go-template-validation.yaml
  • deploy/organization-rulesets/require-workflows-vulnerability-scan.yaml
  • deploy/organization-rulesets/README.md
Applicability reference: AGENTS.md: # AGENTS.md — devantler-tech/.github (GitHub-as-code) Full detail in [actions/CONTRIBUTING.md](actions/CONTRIBUTING.md).

📄 CodeRabbit inference engine (actions/CONTRIBUTING.md)

Files:

  • .github/workflows/ci.yaml
Applicability reference: AGENTS.md: # AGENTS.md — devantler-tech/.github (GitHub-as-code) Full detail in [actions/CONTRIBUTING.md](actions/CONTRIBUTING.md).

📄 CodeRabbit inference engine (actions/CONTRIBUTING.md)

Files:

  • .github/workflows/ci.yaml
Source excerpt: **Manage GitHub declaratively — never imperatively.**

📄 CodeRabbit inference engine (AGENTS.md)

Files:

  • deploy/organization-rulesets/require-workflows-auto-merge.yaml
  • deploy/organization-rulesets/kustomization.yaml
  • deploy/organization-rulesets/require-workflows-dotnet.yaml
  • deploy/organization-rulesets/require-workflows-dependency-review.yaml
  • deploy/organization-rulesets/require-dotnet-template-tests.yaml
  • deploy/organization-rulesets/require-go-template-validation.yaml
  • deploy/organization-rulesets/require-workflows-vulnerability-scan.yaml
  • deploy/organization-rulesets/README.md
Source excerpt: Repo-specific watch-list for the daily engineer: **Agent-file freshness.**

📄 CodeRabbit inference engine (AGENTS.md)

Files:

  • AGENTS.md
🧠 Learnings: 1
📓 Common learnings
Learnt from: CR
Repo: devantler-tech/.github

Timestamp: 2026-10-20T20:39:36.643Z
Learning: Applicability reference:
AGENTS.md: # AGENTS.md — devantler-tech/.github (GitHub-as-code)
## What this repo is
Three things share one repo:

1. **The org's public profile** — `profile/README.md` (rendered on the org page), plus the org-wide
   community health files in [`.github/`](.github/) (`CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`,

Source excerpt:
# Contributing to the shared automation repository

## Choose the right source and checks

| Change | Guidance |
| --- | --- |
| Declarative organization configuration | [Authoring and local render checks](deploy/README.md#authoring-changes); keep Observe-first adoption and the no-Delete boundary |
🔇 Additional comments: 14
deploy/organization-rulesets/require-workflows-auto-merge.yaml: 1

1-2: LGTM!

Also applies to: 10-28, 30-42

deploy/organization-rulesets/require-workflows-dotnet.yaml: 1

1-2: LGTM!

Also applies to: 10-28, 30-42

deploy/organization-rulesets/require-workflows-vulnerability-scan.yaml: 1

1-2: LGTM!

Also applies to: 10-28, 30-42

deploy/organization-rulesets/require-dotnet-template-tests.yaml: 1

1-2: LGTM!

Also applies to: 16-17, 19-22, 24-32, 34-36

deploy/organization-rulesets/require-go-template-validation.yaml: 1

1-2: LGTM!

Also applies to: 16-17, 19-22, 24-32, 34-36

deploy/organization-rulesets/kustomization.yaml: 1

2-3: LGTM!

Also applies to: 10-10

deploy/organization-rulesets/README.md: 1

12-18: LGTM!

Also applies to: 41-44, 60-78

AGENTS.md: 1

139-144: LGTM!

tests/fixtures/legacy-workflow-rulesets-observed.jsonl: 1

1-6: LGTM!

tests/dotnet-template-tests-ruleset.sh: 1

23-23: LGTM!

tests/go-template-validation-ruleset.sh: 1

23-23: LGTM!

tests/legacy-workflow-observation.sh: 1

2-2: LGTM!

Also applies to: 8-13, 15-37, 40-45, 47-75, 77-77, 80-92, 94-94

.github/workflows/ci.yaml: 1

6302-6302: LGTM!

deploy/organization-rulesets/require-workflows-dependency-review.yaml: 1

37-39: 🩺 Stability & Availability

The source files exist in devantler-tech/.github on main, but the workflow trigger declarations and legacy-only dependencies were not inspected because yq was unavailable. The required-workflow readiness claim therefore cannot be decided from the available evidence.

📝 Walkthrough

Six workflow rulesets now declare complete policies managed with Observe and Update. Their required workflow source changes to repository 933213756, while specified selectors, bypasses, enforcement, and lifecycle settings are retained. The fixture and validation script cover all six policies and check rendered configuration, workflow sources, duplicate or incomplete input, and CI invocation. Adoption documentation and CI step naming are updated.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 27dfa

No actionable source-workflow mismatch was found. Complete the planned readback and consumer pull-request checks before retiring the legacy repository.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. (11 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description check Passed The description states that the six remaining required-workflow policies move from the legacy automation repository to maintained automation while preserving protections and repository scope. This dir…
Title check Passed The title clearly summarizes the main change: migrating the remaining required workflows to maintained automation. It is concise, specific, and relevant to the changeset.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description states that the six remaining required-workflow policies move from the legacy automation repository to maintained automation while preserving protections and repository scope. This directly matches the changeset.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. (11 skipped: 11 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

🔧 Checkov (3.3.20)
deploy/organization-rulesets/kustomization.yaml

Checkov retry budget exhausted before isolating this batch

Warning

CI annotation context is incomplete: annotation collection unavailable or limited

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Current-head readiness supplement: 27dfac0394441387ea40280f2430cf5cbef35231 incorporates the merged maintenance cleanup without changing the six-policy migration. All fourteen documented baseline commands pass again on that combined tree; all 282 hosted check contexts are settled green. The authenticated CodeRabbit review finished at this exact head with no actionable findings, and all review threads are resolved.

The runtime effect remains deliberately gated after publication: complete native policy readback and ordinary qualifying consumer PR execution per rule are still required by #237. No caller migration or repository deletion is authorized by configuration evidence alone. The reviewed ruleset tests exercise rendered desired policies and 113 refusal mutations; this PR changes configuration consumed by reconciliation rather than directly modifying live settings.

@devantler
devantler marked this pull request as ready for review October 20, 2026 20:50
@devantler
devantler merged commit 0c7b6c3 into main Oct 20, 2026
286 checks passed
@devantler
devantler deleted the codex/retire-workflow-sources-237-r23 branch October 20, 2026 20:51
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