fleetlint Policy for a fleet of repositories
v0.3
Getting started

ci/concurrency-cancel

PR workflows cancel superseded runs

Severityinfo
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-recommended@0.1.0

Requirement

Workflows triggered by pull requests declare concurrency: {group: ..., cancel-in-progress: true}.

Why

Every push to a PR otherwise queues another full run behind the obsolete one.

Applies when

workflows().exists(w, "pull_request" in triggers(w))

Check

For each item in:

workflows().filter(w, "pull_request" in triggers(w))
yaml(item) != null && has(yaml(item).concurrency) && yaml(item).concurrency["cancel-in-progress"] != false

Fix

Add a concurrency block keyed on the workflow and ref with cancel-in-progress: true.

Agent instruction: Add concurrency: { group: ${{ github.workflow }}-${{ github.ref }}, cancel-in-progress: true } at the top level of the workflow.


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.