Files
headlamp-plugin-template/.github/workflows/dual-approval.yaml
T
Chris Farhood 066db0b902 fix(ci): pass pr_number to dual-approval-check workflow
Passes github.event.pull_request.number to the reusable workflow so
dual-approval status checks work correctly on PRs instead of always
receiving pr_number=0.
2026-05-06 02:18:50 +00:00

21 lines
620 B
YAML

name: Dual Approval (CTO + QA)
# Calls the shared dual-approval-check workflow.
# Passes when both privilegedescalation-cto and privilegedescalation-qa
# have approved the PR. Add "Dual Approval (CTO + QA)" to required_status_checks
# in branch protection to enforce this gate.
on:
pull_request_review:
types: [submitted, dismissed]
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
jobs:
dual-approval:
uses: privilegedescalation/.github/.github/workflows/dual-approval-check.yaml@main
with:
pr_number: ${{ github.event.pull_request.number }}
secrets: inherit