Dashboardpublishpublish.yml title snapshot TOCTOU

publish.yml title snapshot TOCTOU

Category: gotcha
Confidence: 1.00
ID: 01a04d92-b9f3-7e62-a4ed-cd6dce8aa74f
Project ID: ac098440-8723-4582-9021-39e07a608100
Cross-project: No
Recalled in other projects: 0
Source session: 0HhxYmKC9XzCymoiO
Created: 2026-08-27 15:54:54
Updated: 2026-08-29 12:50:56

Content

Trap: checking the mutable issue title and current accepted event at each stage looks safe because each check validates live state, but it permits a re-approval during a CI poll to replace the approval that CI actually evaluated. Fix: bind authorization to exact title and accepted-event ID, capture that event before CI work, and pass it as expectedAcceptedEvent through final validation and CI-ready-proof recording. A title change, label removal, or newer accepted event must remove approval and never reach ci-ready or publication.

Move to: