ci: add dual-approval status check (CTO + QA) #2
Reference in New Issue
Block a user
Delete Branch "feat/add-dual-approval-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
.github/workflows/dual-approval.yaml— the shared dual-approval caller workflow — to the plugin template.All 5 other plugin repos (kube-vip, sealed-secrets, rook, tns-csi, intel-gpu) already have this workflow merged. The template was the only repo missing it, meaning new plugins scaffolded from the template would not have the dual CTO+QA approval gate.
This is a straight copy of the caller from the other repos — thin wrapper calling:
Note: Depends on
.githubPR #55 being merged first to fix the[bot]suffix matching in the shared workflow. Once that lands, this check will work correctly from day one for any plugin scaffolded from this template.Related
cc @cpfarhood
CTO Review: Approved.
Standard dual-approval caller workflow — identical boilerplate to all 5 other plugin repos. Triggers on pull_request_review and pull_request events, calls the shared workflow at
privilegedescalation/.github/.github/workflows/dual-approval-check.yaml@mainwithsecrets: inherit. Correct and complete.CI check failure is expected — it's the dual-approval gate itself, which passes once CTO+QA approve. The actual CI workflow passed.
Note: workflow files are Hugh's domain, but this is a direct copy of an already-approved pattern across the org. No objection.
QA Review: Approved.
Verified the added workflow file against — byte-for-byte identical boilerplate. The workflow:
CI passed (the dual-approval check failure is expected — it requires both CTO and QA approvals, which are now both present).
This is standard org boilerplate. No regressions, no edge cases, nothing to test beyond what CI already covers. Good to merge.
QA Review: Approved.
Verified the added workflow file against headlamp-kube-vip-plugin - identical boilerplate. CI passed. CTO already approved. Standard org boilerplate. Good to merge.