|
50 | 50 | java-version: 20 |
51 | 51 | distribution: 'temurin' |
52 | 52 | cache: gradle |
53 | | - |
54 | | - # Initializes the CodeQL tools for scanning. |
55 | | - - name: Initialize CodeQL |
56 | | - uses: github/codeql-action/init@v2 |
57 | | - with: |
58 | | - languages: ${{ matrix.language }} |
59 | | - # If you wish to specify custom queries, you can do so here or in a config file. |
60 | | - # By default, queries listed here will override any specified in a config file. |
61 | | - # Prefix the list here with "+" to use these queries and those in the config file. |
62 | | - |
63 | | - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs |
64 | | - # queries: security-extended,security-and-quality |
65 | | - |
66 | | - |
67 | | - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). |
68 | | - # If this step fails, then you should remove it and run the build manually (see below) |
69 | | - # - name: Autobuild |
70 | | - # uses: github/codeql-action/autobuild@v2 |
71 | | - |
72 | | - # ℹ️ Command-line programs to run using the OS shell. |
73 | | - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
74 | | - |
75 | | - # If the Autobuild fails above, remove it and uncomment the following three lines. |
76 | | - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
77 | | - |
78 | | - - name: Grant execute permission for gradlew |
79 | | - run: chmod +x gradlew |
80 | | - - name: Build with Gradle |
81 | | - run: ./gradlew build |
82 | | - |
83 | | - - name: Perform CodeQL Analysis |
84 | | - uses: github/codeql-action/analyze@v2 |
85 | | - with: |
86 | | - category: "/language:${{matrix.language}}" |
0 commit comments