Skip to content

Commit 30e7bbc

Browse files
zasphw
authored andcommitted
Fix and simplify CodeQL workflow
Warning: 1 issue was detected with this workflow: git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.
1 parent 0cd586e commit 30e7bbc

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

.github/workflows/codeql-analysis.yml

+1-19
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,15 @@ jobs:
1919
name: Analyze
2020
runs-on: ubuntu-latest
2121

22-
strategy:
23-
fail-fast: false
24-
matrix:
25-
# Override automatic language detection by changing the below list
26-
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27-
language: ['python']
28-
# Learn more...
29-
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30-
3122
steps:
3223
- name: Checkout repository
3324
uses: actions/checkout@v2
34-
with:
35-
# We must fetch at least the immediate parents so that if this is
36-
# a pull request then we can checkout the head.
37-
fetch-depth: 2
38-
39-
# If this run was triggered by a pull request event, then checkout
40-
# the head of the pull request instead of the merge commit.
41-
- run: git checkout HEAD^2
42-
if: ${{ github.event_name == 'pull_request' }}
4325

4426
# Initializes the CodeQL tools for scanning.
4527
- name: Initialize CodeQL
4628
uses: github/codeql-action/init@v1
4729
with:
48-
languages: ${{ matrix.language }}
30+
languages: python
4931
# If you wish to specify custom queries, you can do so here or in a config file.
5032
# By default, queries listed here will override any specified in a config file.
5133
# Prefix the list here with "+" to use these queries and those in the config file.

0 commit comments

Comments
 (0)