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:
parent
94d8bd5d32
commit
0016baa1cd
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user