1+ ---
12name : " CodeQL"
23
34on :
4- push :
5- branches : [develop, master]
65 pull_request :
76 # The branches below must be a subset of the branches above
87 branches : [develop, master]
@@ -18,45 +17,49 @@ jobs:
1817 fail-fast : false
1918 matrix :
2019 # Override automatic language detection by changing the below list
21- # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
20+ # Supported options are
21+ # ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
2222 language : ['python']
2323 # Learn more...
2424 # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
2525
2626 steps :
27- - name : Checkout repository
28- uses : actions/checkout@v2
29- with :
30- # We must fetch at least the immediate parents so that if this is
31- # a pull request then we can checkout the head.
32- fetch-depth : 2
33-
34- # If this run was triggered by a pull request event, then checkout
35- # the head of the pull request instead of the merge commit.
36- - run : git checkout HEAD^2
37- if : ${{ github.event_name == 'pull_request' }}
38-
39- # Initializes the CodeQL tools for scanning.
40- - name : Initialize CodeQL
41- uses : github/codeql-action/init@v1
42- with :
43- languages : ${{ matrix.language }}
44-
45- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
46- # If this step fails, then you should remove it and run the build manually (see below)
47- - name : Autobuild
48- uses : github/codeql-action/autobuild@v1
49-
50- # ℹ️ Command-line programs to run using the OS shell.
51- # 📚 https://git.io/JvXDl
52-
53- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
54- # and modify them (or add more) to build your code if your project
55- # uses a compiled language
56-
57- # - run: |
58- # make bootstrap
59- # make release
60-
61- - name : Perform CodeQL Analysis
62- uses : github/codeql-action/analyze@v1
27+ - name : Checkout repository
28+ uses : actions/checkout@v2
29+ with :
30+ # We must fetch at least the immediate parents so that if this is
31+ # a pull request then we can checkout the head.
32+ fetch-depth : 2
33+
34+ # If this run was triggered by a pull request event, then checkout
35+ # the head of the pull request instead of the merge commit.
36+ - run : git checkout HEAD^2
37+ if : ${{ github.event_name == 'pull_request' }}
38+
39+ # Initializes the CodeQL tools for scanning.
40+ - name : Initialize CodeQL
41+ uses : github/codeql-action/init@v1
42+ with :
43+ languages : ${{ matrix.language }}
44+
45+ # Autobuild attempts to build any compiled languages
46+ # (C/C++, C#, or Java).
47+ # If this step fails,
48+ # then you should remove it and run the build manually (see below)
49+ - name : Autobuild
50+ uses : github/codeql-action/autobuild@v1
51+
52+ # ℹ️ Command-line programs to run using the OS shell.
53+ # 📚 https://git.io/JvXDl
54+
55+ # ✏️ If the Autobuild fails above,
56+ # remove it and uncomment the following three lines
57+ # and modify them (or add more) to build your code if your project
58+ # uses a compiled language
59+
60+ # - run: |
61+ # make bootstrap
62+ # make release
63+
64+ - name : Perform CodeQL Analysis
65+ uses : github/codeql-action/analyze@v1
0 commit comments