@@ -13,10 +13,17 @@ jobs:
1313 CodeQL-Build :
1414
1515 runs-on : ubuntu-latest
16+ permissions :
17+ actions : read
18+ contents : read
19+ security-events : write
20+
21+ strategy :
22+ fail-fast : false
1623
1724 steps :
1825 - name : Checkout repository
19- uses : actions/checkout@v2
26+ uses : actions/checkout@v4
2027 with :
2128 # We must fetch at least the immediate parents so that if this is
2229 # a pull request then we can checkout the head.
@@ -27,28 +34,29 @@ jobs:
2734 - run : git checkout HEAD^2
2835 if : ${{ github.event_name == 'pull_request' }}
2936
37+ - name : Set up Java
38+ uses : actions/setup-java@v1
39+ with :
40+ java-version : 11
3041 # Initializes the CodeQL tools for scanning.
3142 - name : Initialize CodeQL
32- uses : github/codeql-action/init@v1
43+ uses : github/codeql-action/init@v3
3344 # Override language selection by uncommenting this and choosing your languages
3445 with :
3546 languages : java
3647
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 ../..
5361 - name : Perform CodeQL Analysis
54- uses : github/codeql-action/analyze@v1
62+ uses : github/codeql-action/analyze@v3
0 commit comments