fix(ci): cancel stale CodeQL runs (#95116)

* ci: cancel stale CodeQL runs

* fix(ci): let running CodeQL scans finish
This commit is contained in:
Dallin Romney
2026-06-19 16:41:57 -07:00
committed by GitHub
parent 6fc0a3a9bd
commit d491e9c69b
4 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ on:
- cron: "0 6 * * *"
concurrency:
group: codeql-${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
group: codeql-${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && format('manual-{0}', github.run_id) || github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || format('ref-{0}', github.ref) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env: