Skip to content

Commit 62a63b2

Browse files
authored
Run codeql on java 11 (#755)
1 parent 8f1dae0 commit 62a63b2

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

.github/workflows/codeql-analysis.yml

+38-38
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,55 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [master, ]
5+
branches: [master]
66
pull_request:
77
branches: [master]
88
schedule:
9-
- cron: '0 1 * * 5'
9+
- cron: "0 1 * * 5"
1010

1111
jobs:
1212
analyse:
1313
name: CodeQL Analyse
1414
runs-on: ubuntu-latest
1515

1616
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
2323

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' }}
2828

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
3535

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: ""
5454

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

Comments
 (0)