IGithubActionsSecurityNoCancelOptions
A security workflow must give every pushed commit its own completed run.
A secret-scanning workflow is the authoritative gate (a local hook is
defense-in-depth and --no-verify skips it), and it scans history. Two
concurrency shapes hide a commit from the scan without turning anything red:
cancel-in-progress: true. Push B cancels push A’s run. A force-push that rewrites history leaves A’s commit out of B’s scan, so a key it contained is exposed (GitHub still serves the orphaned SHA) and nothing flags it.- A group not keyed on the commit, even with
cancel-in-progress: false. GitHub keeps one running and one pending run per group and a new run REPLACES the pending one, so the middle of three quick pushes never gets a run of its own.
So a security workflow either has no concurrency block, or keys its group
on github.sha / github.run_id (a group nothing else shares) and does not
cancel. A workflow is a security workflow when its file name matches
securityWorkflowName (default: starts with security-) or when it runs the
gitleaks CLI or action.
Line-based: comments are stripped first (a workflow’s own explanation of why
it has no block may name cancel-in-progress: true), then every
concurrency: key is read in block, flow-mapping or scalar form, at the
workflow or at a job level.
Properties
Section titled “Properties”securityWorkflowName?
Section titled “securityWorkflowName?”
readonlyoptionalsecurityWorkflowName?:RegExp
Which workflow file names (basename) are security workflows. Default /^security-.+\.ya?ml$/u.