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?
This commit is contained in:
Issy Long 2022-04-15 17:36:18 +01:00
parent 94d8bd5d32
commit 0016baa1cd
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -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