Story Summary
As a platform engineer, I want the PR OpenTofu Plan workflow to cancel superseded runs automatically, so that merged or re-pushed PRs don't leave orphaned runs stuck in the dev-ci waiting state indefinitely.
✅ Acceptance Criteria
📝 Additional Context
pr-tofu-plan-develop.yml uses the dev-ci environment (required reviewer), so each run enters a "waiting" state until approved. When a PR merges before approval, the run is never dismissed and sits in waiting state until GitHub's 30-day timeout.
- Fix: add
concurrency: { group: tofu-plan-${{ github.event.pull_request.number }}, cancel-in-progress: true } at the job or workflow level.
- Existing orphaned runs cannot be cancelled via API with current token permissions — they will time out naturally.
📦 Definition of Ready
✅ Definition of Done