From 0016baa1cd8b3474be6c4fc06a8896a1319f1b5e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Fri, 15 Apr 2022 17:36:18 +0100 Subject: [PATCH] workflows/codeql: Don't run on schedule, and no need for a matrix - These were the defaults generated when I clicked the "enable Code Scanning" button on GitHub, but... - Since we only have Ruby in this repo, we don't need a matrix, we can just specify `languages: ruby`. - And this repo gets enough usage that the schedule is not very useful - who would look at the scheduled run vs. it running every day on PRs? --- .github/workflows/codeql-analysis.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7912745fe3..22ed3f7d07 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -5,8 +5,6 @@ on: branches: [ master ] pull_request: branches: [ master ] - schedule: - - cron: '30 2 * * 0' jobs: analyze: @@ -19,8 +17,6 @@ jobs: strategy: fail-fast: false - matrix: - language: [ 'ruby' ] steps: - name: Checkout repository @@ -29,7 +25,7 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: - languages: ${{ matrix.language }} + languages: ruby config-file: ./.github/codeql/codeql-config.yml - name: Perform CodeQL Analysis