diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 56e685d..2e930c1 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -7,8 +7,8 @@ on: schedule: - cron: "35 8 * * 2" concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: {} jobs: analyze: