|
| 1 | +# CodeQL |
| 2 | +# |
| 3 | +# version 1.0.0 |
| 4 | +# |
| 5 | +# see : https://universe.fugerit.org/src/docs/conventions/workflows/codeql-analysis.html |
| 6 | + |
1 | 7 | # For most projects, this workflow file will not need changing; you simply need
|
2 | 8 | # to commit it to your repository.
|
3 | 9 | #
|
4 | 10 | # You may wish to alter this file to override the set of languages analyzed,
|
5 | 11 | # or to provide custom queries or build logic.
|
6 |
| -# |
7 |
| -# ******** NOTE ******** |
8 |
| -# We have attempted to detect the languages in your repository. Please check |
9 |
| -# the `language` matrix defined below to confirm you have the correct set of |
10 |
| -# supported CodeQL languages. |
11 |
| -# |
| 12 | + |
12 | 13 | name: "CodeQL"
|
13 | 14 |
|
14 | 15 | on:
|
@@ -39,38 +40,45 @@ jobs:
|
39 | 40 | # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
40 | 41 |
|
41 | 42 | steps:
|
42 |
| - - name: Checkout repository |
43 |
| - uses: actions/checkout@v3 |
| 43 | + - name: Checkout repository |
| 44 | + uses: actions/checkout@main |
| 45 | + |
| 46 | + - name: Set up JDK 17 |
| 47 | + uses: actions/setup-java@main |
| 48 | + with: |
| 49 | + java-version: '17' |
| 50 | + distribution: 'corretto' |
| 51 | + cache: 'maven' |
44 | 52 |
|
45 |
| - # Initializes the CodeQL tools for scanning. |
46 |
| - - name: Initialize CodeQL |
47 |
| - uses: github/codeql-action/init@v2 |
48 |
| - with: |
49 |
| - languages: ${{ matrix.language }} |
50 |
| - # If you wish to specify custom queries, you can do so here or in a config file. |
51 |
| - # By default, queries listed here will override any specified in a config file. |
52 |
| - # Prefix the list here with "+" to use these queries and those in the config file. |
| 53 | + # Initializes the CodeQL tools for scanning. |
| 54 | + - name: Initialize CodeQL |
| 55 | + uses: github/codeql-action/init@main |
| 56 | + with: |
| 57 | + languages: ${{ matrix.language }} |
| 58 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 59 | + # By default, queries listed here will override any specified in a config file. |
| 60 | + # Prefix the list here with "+" to use these queries and those in the config file. |
53 | 61 |
|
54 |
| - # 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 |
55 |
| - # queries: security-extended,security-and-quality |
| 62 | + # 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 |
| 63 | + # queries: security-extended,security-and-quality |
56 | 64 |
|
57 | 65 |
|
58 |
| - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). |
59 |
| - # If this step fails, then you should remove it and run the build manually (see below) |
60 |
| - - name: Autobuild |
61 |
| - uses: github/codeql-action/autobuild@v2 |
| 66 | + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). |
| 67 | + # If this step fails, then you should remove it and run the build manually (see below) |
| 68 | + - name: Autobuild |
| 69 | + uses: github/codeql-action/autobuild@main |
62 | 70 |
|
63 |
| - # ℹ️ Command-line programs to run using the OS shell. |
64 |
| - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
| 71 | + # ℹ️ Command-line programs to run using the OS shell. |
| 72 | + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
65 | 73 |
|
66 |
| - # If the Autobuild fails above, remove it and uncomment the following three lines. |
67 |
| - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
| 74 | + # If the Autobuild fails above, remove it and uncomment the following three lines. |
| 75 | + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
68 | 76 |
|
69 |
| - # - run: | |
70 |
| - # echo "Run, Build Application using script" |
71 |
| - # ./location_of_script_within_repo/buildscript.sh |
| 77 | + # - run: | |
| 78 | + # echo "Run, Build Application using script" |
| 79 | + # ./location_of_script_within_repo/buildscript.sh |
72 | 80 |
|
73 |
| - - name: Perform CodeQL Analysis |
74 |
| - uses: github/codeql-action/analyze@v2 |
75 |
| - with: |
76 |
| - category: "/language:${{matrix.language}}" |
| 81 | + - name: Perform CodeQL Analysis |
| 82 | + uses: github/codeql-action/analyze@main |
| 83 | + with: |
| 84 | + category: "/language:${{matrix.language}}" |
0 commit comments