@@ -2,55 +2,55 @@ name: "CodeQL"
2
2
3
3
on :
4
4
push :
5
- branches : [master, ]
5
+ branches : [master]
6
6
pull_request :
7
7
branches : [master]
8
8
schedule :
9
- - cron : ' 0 1 * * 5'
9
+ - cron : " 0 1 * * 5"
10
10
11
11
jobs :
12
12
analyse :
13
13
name : CodeQL Analyse
14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
- - name : Checkout repository
18
- uses : actions/checkout@v2
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
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v2
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
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' }}
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
28
29
- # Initializes the CodeQL tools for scanning.
30
- - name : Initialize CodeQL
31
- uses : github/codeql-action/init@v1
32
- # Override language selection by uncommenting this and choosing your languages
33
- # with:
34
- # languages: go, javascript, csharp, python, cpp, java
29
+ # Initializes the CodeQL tools for scanning.
30
+ - name : Initialize CodeQL
31
+ uses : github/codeql-action/init@v1
32
+ # Override language selection by uncommenting this and choosing your languages
33
+ # with:
34
+ # languages: go, javascript, csharp, python, cpp, java
35
35
36
- - name : Use Java 8
37
- uses : actions/setup-java@v1
38
- with :
39
- java-version : ' 8 '
40
- architecture : x64
41
- - name : Use Node 12.16.2
42
- uses : actions/setup-node@v1
43
- with :
44
- node-version : 12.16.2
45
- - name : Build
46
- uses : eskatos/gradle-command-action@v1
47
- with :
48
- arguments : build -x test
49
- wrapper-cache-enabled : false
50
- env :
51
- GITHUB_TOKEN : ${{ secrets.GITHUB_SONARCLOUD_TOKEN }}
52
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
53
- JAVA_HOME : ' '
36
+ - name : Use Java 11
37
+ uses : actions/setup-java@v1
38
+ with :
39
+ java-version : " 11 "
40
+ architecture : x64
41
+ - name : Use Node 12.16.2
42
+ uses : actions/setup-node@v1
43
+ with :
44
+ node-version : 12.16.2
45
+ - name : Build
46
+ uses : eskatos/gradle-command-action@v1
47
+ with :
48
+ arguments : build -x test
49
+ wrapper-cache-enabled : false
50
+ env :
51
+ GITHUB_TOKEN : ${{ secrets.GITHUB_SONARCLOUD_TOKEN }}
52
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
53
+ JAVA_HOME : " "
54
54
55
- - name : Perform CodeQL Analysis
56
- uses : github/codeql-action/analyze@v1
55
+ - name : Perform CodeQL Analysis
56
+ uses : github/codeql-action/analyze@v1
0 commit comments