Skip to content

Commit c1697ef

Browse files
committed
ci: update codeql workflow based on updated boilerplate
1 parent b44c931 commit c1697ef

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
61
name: "CodeQL"
72

83
on:
@@ -12,8 +7,8 @@ on:
127
# The branches below must be a subset of the branches above
138
branches: [master]
149
schedule:
15-
# At 13:29 on Friday - https://crontab.guru/
16-
- cron: '29 13 * * 5'
10+
# At 05:00 - https://crontab.guru/
11+
- cron: '0 5 * * *'
1712

1813
jobs:
1914
analyze:
@@ -23,32 +18,22 @@ jobs:
2318
strategy:
2419
fail-fast: false
2520
matrix:
26-
# Override automatic language detection by changing the below list
27-
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
28-
language: ['python', 'javascript']
29-
# Learn more...
30-
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
21+
language: [ 'python', 'javascript' ]
22+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
23+
# Learn more:
24+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
3125

3226
steps:
3327
- name: Checkout repository
3428
uses: actions/checkout@v2
35-
with:
36-
# We must fetch at least the immediate parents so that if this is
37-
# a pull request then we can checkout the head.
38-
fetch-depth: 2
39-
40-
# If this run was triggered by a pull request event, then checkout
41-
# the head of the pull request instead of the merge commit.
42-
- run: git checkout HEAD^2
43-
if: ${{ github.event_name == 'pull_request' }}
4429

4530
# Initializes the CodeQL tools for scanning.
4631
- name: Initialize CodeQL
4732
uses: github/codeql-action/init@v1
4833
with:
4934
languages: ${{ matrix.language }}
5035
# If you wish to specify custom queries, you can do so here or in a config file.
51-
# By default, queries listed here will override any specified in a config file.
36+
# By default, queries listed here will override any specified in a config file.
5237
# Prefix the list here with "+" to use these queries and those in the config file.
5338
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5439

0 commit comments

Comments
 (0)