@@ -3,51 +3,50 @@ name: "Code scanning - action"
33on :
44 push :
55 branches-ignore :
6- - ' dependabot/**'
6+ - " dependabot/**"
77 pull_request :
88 schedule :
9- - cron : ' 0 12 * * 5'
9+ - cron : " 0 12 * * 5"
1010
1111jobs :
1212 CodeQL-Build :
13-
1413 runs-on : ubuntu-latest
1514
1615 steps :
17- - name : Checkout repository
18- uses : actions/checkout@v6
19- with :
20- # We must fetch at least the immediate parents so that if this is
21- # a pull request then we can checkout the head.
22- fetch-depth : 2
23-
24- # If this run was triggered by a pull request event, then checkout
25- # the head of the pull request instead of the merge commit.
26- - run : git checkout HEAD^2
27- if : ${{ github.event_name == 'pull_request' }}
28-
29- # Initializes the CodeQL tools for scanning.
30- - name : Initialize CodeQL
31- uses : github/codeql-action/init@v4
32- # Override language selection by uncommenting this and choosing your languages
33- # with:
34- # languages: go, javascript, csharp, python, cpp, java
35-
36- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
37- # If this step fails, then you should remove it and run the build manually (see below)
38- - name : Autobuild
39- uses : github/codeql-action/autobuild@v4
40-
41- # ℹ️ Command-line programs to run using the OS shell.
42- # 📚 https://git.io/JvXDl
43-
44- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
45- # and modify them (or add more) to build your code if your project
46- # uses a compiled language
47-
48- # - run: |
49- # make bootstrap
50- # make release
51-
52- - name : Perform CodeQL Analysis
53- uses : github/codeql-action/analyze@v4
16+ - name : Checkout repository
17+ uses : actions/checkout@v6
18+ with :
19+ # We must fetch at least the immediate parents so that if this is
20+ # a pull request then we can checkout the head.
21+ fetch-depth : 2
22+
23+ # If this run was triggered by a pull request event, then checkout
24+ # the head of the pull request instead of the merge commit.
25+ - run : git checkout HEAD^2
26+ if : ${{ github.event_name == 'pull_request' }}
27+
28+ # Initializes the CodeQL tools for scanning.
29+ - name : Initialize CodeQL
30+ uses : github/codeql-action/init@v4
31+ # Override language selection by uncommenting this and choosing your languages
32+ # with:
33+ # languages: go, javascript, csharp, python, cpp, java
34+
35+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
36+ # If this step fails, then you should remove it and run the build manually (see below)
37+ - name : Autobuild
38+ uses : github/codeql-action/autobuild@v4
39+
40+ # ℹ️ Command-line programs to run using the OS shell.
41+ # 📚 https://git.io/JvXDl
42+
43+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
44+ # and modify them (or add more) to build your code if your project
45+ # uses a compiled language
46+
47+ # - run: |
48+ # make bootstrap
49+ # make release
50+
51+ - name : Perform CodeQL Analysis
52+ uses : github/codeql-action/analyze@v4
0 commit comments