Skip to content

fix: require repository-owned .NET matrix checks - #688

Merged
devantler merged 4 commits into
mainfrom
codex/dotnet-repository-gate-534-r26-main
Oct 21, 2026
Merged

devantler merged 4 commits into
mainfrom
codex/dotnet-repository-gate-534-r26-main

Conversation

@devantler

@devantler devantler commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Generated by the Agentic Engineer

Why

The .NET template now owns its validation, but its platform checks are still required through a temporary organization rule. Repository-specific enforcement is needed before that central dependency can be retired safely.

What

Require all three distinctly named local platform results through a repository ruleset, bound to GitHub Actions. Keep the old protection during deployment and consumer verification, continuing the template ownership migration.

Part of #56

⚠️ Merge order: land dotnet-template#542 first, so the new rule names real local checks.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

This continues dotnet-template#534 after its repository-owned pipeline merged in #535. It requires each of the three native platform checks through a repository-scoped rule, using the observed GitHub Actions producer rather than introducing another App.

At b397375dc63d1a8a656d5cf068829908847c42a1, the new regression failed before the policy existed and passes against the rendered provider payload. It independently checks all three exact contexts, their producer binding, the default-branch target, lifecycle and absence of bypasses. All fourteen baseline manifest/governance checks, the legacy workflow-observation rejection controls, instruction layout, ShellCheck and whitespace validation passed locally. GitHub confirms the commit signature. The provider's published v0.20.0 namespaced RepositoryRuleset schema supports the integer producer binding used here.

The original organization rule deliberately remains active. Neither this rendered declaration nor a passing configuration test proves native enforcement. After protected merge, publication and reconciliation, completion still requires a live repository-ruleset readback, all three jobs from the repository-owned workflow on an ordinary consumer PR, and native enforcement controls before removing the old organization rule. Native required status checks do not assert the immutable workflow-source identity provided by an organization-required workflow.

Hosted CI and a current-head review remain required before promotion. This is the overlap stage, not the completed cutover.

@github-code-quality

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

Copy link
Copy Markdown

Code coverage overview

Languages: Go, C#

Go / code-coverage/test

main 71637aa codex/dotnet-reposit... b6b6e3a +/-
50% 50% 0%

C# / code-coverage/dotnet

main 71637aa codex/dotnet-reposit... b6b6e3a +/-
100% 100% 0%

Go / code-coverage/go

main 71637aa codex/dotnet-reposit... b6b6e3a +/-
50% 50% 0%

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


Updated October 21, 2026 21:31 UTC

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 10 minutes.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 10 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: c12e139d-65a5-4828-82d3-36e48c773838
📥 Commits

Reviewing files that changed from the base of the PR and between 467f075 and 9968f1b.

📒 Files selected for processing: 5
  • .github/workflows/ci.yaml
  • deploy/repository-rulesets/README.md
  • deploy/repository-rulesets/kustomization.yaml
  • deploy/repository-rulesets/require-validation-on-dotnet-template.yaml
  • tests/dotnet-repository-validation-ruleset.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T21:42:15.741601Z b6b6e3a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Native overlap readback found the local and injected .NET jobs both publish test () from the same GitHub Actions App. A producer binding alone therefore cannot distinguish them. I am correcting the native names to .NET template tests () and rebinding this policy to those distinct contexts before merge. The old organization rule remains active throughout. The correction will land in dotnet-template before this enforcement declaration. The prior review/head cannot authorize the updated policy.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Updated head 4c3d90a binds the distinct native .NET template tests contexts. Native dotnet-template PR542 run 39669738137 now reports all three exact platform names successfully from GitHub Actions App 15368. Its branch is f8c54248516b8ebf93aff0a57343973ece268fdc, verified signed. The local rendered-policy regression passes; the old organization gate remains active. Merge PR542 first, then this policy only after its own new-head CI and review.

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

At 4c3d90a, all 275 hosted checks are green. The repository ruleset now requires the distinct native matrix contexts delivered by dotnet-template#542, which has merged. The authenticated CodeRabbit quota reported on .github#690 at 20:44:16Z remains repository-scoped; moving to the next provider at this new exact head.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 4c3d90a0e6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

At b6b6e3a, the reviewed Go ruleset is retained alongside this .NET ruleset after resolving the base conflict. All 275 hosted checks have completed successfully or as intended eligibility skips; the current head is signed, native CLEAN, and has zero unresolved threads. The previous review was for 4c3d90a and is not reused. The repository-scoped CodeRabbit quota observed at 20:44:16Z remains in its current hourly window, so requesting the ordered fallback at this exact head.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: b6b6e3ae57

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@devantler
devantler marked this pull request as ready for review October 21, 2026 21:43
@devantler
devantler merged commit 8ff0e5b into main Oct 21, 2026
275 checks passed
@devantler
devantler deleted the codex/dotnet-repository-gate-534-r26-main branch October 21, 2026 21:43
@devantler

Copy link
Copy Markdown
Contributor Author

🤖 Generated by the Agentic Engineer

Merged head b6b6e3a as 8ff0e5b after clean exact-head Codex receipt 6327193626, 275 green/intended-skip checks, zero unresolved findings and normal head-pinned protected squash. Release v8.0.2 and CD run 39681181471 have completed. Native repository ruleset 25594865 is active with no bypass actors and all three distinct .NET template tests matrix contexts bound to GitHub Actions app 15368. The old organization gate remains active during the ordinary positive/refusal controls tracked by dotnet-template#534; rollout is not yet retired.

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