@@ -13,10 +13,17 @@ jobs:
13
13
CodeQL-Build :
14
14
15
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ actions : read
18
+ contents : read
19
+ security-events : write
20
+
21
+ strategy :
22
+ fail-fast : false
16
23
17
24
steps :
18
25
- name : Checkout repository
19
- uses : actions/checkout@v2
26
+ uses : actions/checkout@v4
20
27
with :
21
28
# We must fetch at least the immediate parents so that if this is
22
29
# a pull request then we can checkout the head.
@@ -27,28 +34,29 @@ jobs:
27
34
- run : git checkout HEAD^2
28
35
if : ${{ github.event_name == 'pull_request' }}
29
36
37
+ - name : Set up Java
38
+ uses : actions/setup-java@v1
39
+ with :
40
+ java-version : 11
30
41
# Initializes the CodeQL tools for scanning.
31
42
- name : Initialize CodeQL
32
- uses : github/codeql-action/init@v1
43
+ uses : github/codeql-action/init@v3
33
44
# Override language selection by uncommenting this and choosing your languages
34
45
with :
35
46
languages : java
36
47
37
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38
- # If this step fails, then you should remove it and run the build manually (see below)
39
- - name : Autobuild
40
- uses : github/codeql-action/autobuild@v1
41
-
42
- # ℹ️ Command-line programs to run using the OS shell.
43
- # 📚 https://git.io/JvXDl
44
-
45
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46
- # and modify them (or add more) to build your code if your project
47
- # uses a compiled language
48
-
49
- # - run: |
50
- # make bootstrap
51
- # make release
52
-
48
+ - name : Cache local Maven repository
49
+ uses : actions/cache@v2
50
+ with :
51
+ path : ~/.m2/repository
52
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
53
+ restore-keys : |
54
+ ${{ runner.os }}-maven-
55
+ - name : Build with Maven and Gradle
56
+ run : |
57
+ ./mvnw --no-transfer-progress -B install --file pom.xml
58
+ cd ./modules/swagger-gradle-plugin
59
+ ./gradlew build --info
60
+ cd ../..
53
61
- name : Perform CodeQL Analysis
54
- uses : github/codeql-action/analyze@v1
62
+ uses : github/codeql-action/analyze@v3
0 commit comments