🔥 3-day streak
GitHub Advanced Security (GH-500)34 / 144
Question 34 of 144
A platform team notices their CodeQL analysis workflow is frequently triggered multiple times in quick succession when developers push several commits to the same feature branch within minutes. This causes a backlog of queued CodeQL jobs, consuming Actions runner minutes and delaying results for the latest commit. The team wants to ensure that when a newer run starts for a branch, any in-progress or queued CodeQL runs for that same branch are automatically cancelled. Which change to the CodeQL workflow best achieves this?
Reviewed for accuracy · Report an issueNext question