Skip to content

Commit b5e5ca5

Browse files
authored
improvement(ci): run the CodeQL cron weekly and cancel superseded scans (#6406)
1 parent cb8338c commit b5e5ca5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ on:
4141
# Safety net behind the push trigger, and the thing that keeps the
4242
# default-branch alert view fresh when main is quiet. Only fires once this
4343
# file is on the default branch — schedule events ignore other branches.
44-
- cron: '17 8 * * *'
44+
- cron: '17 8 * * 1'
4545
workflow_dispatch:
4646

47-
# Scheduled main scans must run to completion — only PR pushes supersede.
4847
concurrency:
4948
group: codeql-${{ github.ref }}
50-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
49+
cancel-in-progress: true
5150

5251
permissions:
5352
contents: read

0 commit comments

Comments
 (0)