fix: correct ci concurrency and checkout configuration

- Remove sparse-checkout from supply-chain-pr workflow to allow local docker builds
- Update concurrency groups in docker-build, quality-checks, and codeql to use strict branch refs
- Remove SHA component from integration test concurrency groups to enable proper cancellation of stale runs
- Ensures rapid pushes now correctly cancel previous in-progress CI jobs instead of queuing indefinitely
This commit is contained in:
GitHub Actions
2026-02-06 05:36:35 +00:00
parent 00cc170a06
commit 8e22b66744
7 changed files with 7 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ on:
# Prevent race conditions when PR is updated mid-test
# Cancels old test runs when new build completes with different SHA
concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}-${{ github.event.workflow_run.head_sha || github.sha }}
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
jobs:

View File

@@ -17,7 +17,7 @@ on:
- cron: '0 3 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
env:

View File

@@ -22,7 +22,7 @@ on:
# Prevent race conditions when PR is updated mid-test
# Cancels old test runs when new build completes with different SHA
concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}-${{ github.event.workflow_run.head_sha || github.sha }}
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
jobs:

View File

@@ -38,7 +38,7 @@ on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
env:

View File

@@ -15,7 +15,7 @@ on:
- 'hotfix/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
permissions:

View File

@@ -22,7 +22,7 @@ on:
# Prevent race conditions when PR is updated mid-test
# Cancels old test runs when new build completes with different SHA
concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}-${{ github.event.workflow_run.head_sha || github.sha }}
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
jobs:

View File

@@ -22,7 +22,7 @@ on:
# Prevent race conditions when PR is updated mid-test
# Cancels old test runs when new build completes with different SHA
concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}-${{ github.event.workflow_run.head_sha || github.sha }}
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
jobs: