|
1 | | -# Licensed to the Apache Software Foundation (ASF) under one or more |
2 | | -# contributor license agreements. See the NOTICE file distributed with |
3 | | -# this work for additional information regarding copyright ownership. |
4 | | -# The ASF licenses this file to You under the Apache License, Version 2.0 |
5 | | -# (the "License"); you may not use this file except in compliance with |
6 | | -# the License. You may obtain a copy of the License at |
7 | | -# |
8 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
9 | | -# |
10 | | -# Unless required by applicable law or agreed to in writing, software |
11 | | -# distributed under the License is distributed on an "AS IS" BASIS, |
12 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | | -# See the License for the specific language governing permissions and |
14 | | -# limitations under the License. |
15 | | - |
16 | | -name: "CodeQL" |
17 | | -on: [push, pull_request] |
18 | | - |
19 | | -permissions: |
20 | | - contents: read |
21 | | - |
22 | | -jobs: |
23 | | - analyze: |
24 | | - name: Analyze |
25 | | - runs-on: ubuntu-latest |
26 | | - permissions: |
27 | | - actions: read |
28 | | - contents: read |
29 | | - security-events: write |
30 | | - |
31 | | - strategy: |
32 | | - fail-fast: false |
33 | | - matrix: |
34 | | - language: [ 'java' ] |
35 | | - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
36 | | - # Learn more about CodeQL language support at https://git.io/codeql-language-support |
37 | | - |
38 | | - steps: |
39 | | - - name: Checkout repository |
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# contributor license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright ownership. |
| 4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | +# (the "License"); you may not use this file except in compliance with |
| 6 | +# the License. You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +name: "CodeQL" |
| 17 | +on: [push, pull_request] |
| 18 | + |
| 19 | +permissions: |
| 20 | + contents: read |
| 21 | + |
| 22 | +jobs: |
| 23 | + analyze: |
| 24 | + name: Analyze |
| 25 | + runs-on: ubuntu-latest |
| 26 | + permissions: |
| 27 | + actions: read |
| 28 | + contents: read |
| 29 | + security-events: write |
| 30 | + |
| 31 | + strategy: |
| 32 | + fail-fast: false |
| 33 | + matrix: |
| 34 | + language: [ 'java' ] |
| 35 | + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
| 36 | + # Learn more about CodeQL language support at https://git.io/codeql-language-support |
| 37 | + |
| 38 | + steps: |
| 39 | + - name: Checkout repository |
40 | 40 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 |
41 | | - with: |
42 | | - persist-credentials: false |
| 41 | + with: |
| 42 | + persist-credentials: false |
43 | 43 | - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 |
44 | | - with: |
45 | | - path: ~/.m2/repository |
46 | | - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
47 | | - restore-keys: | |
48 | | - ${{ runner.os }}-maven- |
49 | | -
|
50 | | - # Initializes the CodeQL tools for scanning. |
51 | | - - name: Initialize CodeQL |
| 44 | + with: |
| 45 | + path: ~/.m2/repository |
| 46 | + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
| 47 | + restore-keys: | |
| 48 | + ${{ runner.os }}-maven- |
| 49 | +
|
| 50 | + # Initializes the CodeQL tools for scanning. |
| 51 | + - name: Initialize CodeQL |
52 | 52 | uses: github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # 3.28.1 |
53 | | - with: |
54 | | - languages: ${{ matrix.language }} |
55 | | - # If you wish to specify custom queries, you can do so here or in a config file. |
56 | | - # By default, queries listed here will override any specified in a config file. |
57 | | - # Prefix the list here with "+" to use these queries and those in the config file. |
58 | | - # queries: ./path/to/local/query, your-org/your-repo/queries@main |
59 | | - |
60 | | - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
61 | | - # If this step fails, then you should remove it and run the build manually (see below) |
62 | | - - name: Autobuild |
| 53 | + with: |
| 54 | + languages: ${{ matrix.language }} |
| 55 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 56 | + # By default, queries listed here will override any specified in a config file. |
| 57 | + # Prefix the list here with "+" to use these queries and those in the config file. |
| 58 | + # queries: ./path/to/local/query, your-org/your-repo/queries@main |
| 59 | + |
| 60 | + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
| 61 | + # If this step fails, then you should remove it and run the build manually (see below) |
| 62 | + - name: Autobuild |
63 | 63 | uses: github/codeql-action/autobuild@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # 3.28.1 |
64 | | - |
65 | | - # ℹ️ Command-line programs to run using the OS shell. |
66 | | - # 📚 https://git.io/JvXDl |
67 | | - |
68 | | - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
69 | | - # and modify them (or add more) to build your code if your project |
70 | | - # uses a compiled language |
71 | | - |
72 | | - #- run: | |
73 | | - # make bootstrap |
74 | | - # make release |
75 | | - |
76 | | - - name: Perform CodeQL Analysis |
| 64 | + |
| 65 | + # ℹ️ Command-line programs to run using the OS shell. |
| 66 | + # 📚 https://git.io/JvXDl |
| 67 | + |
| 68 | + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
| 69 | + # and modify them (or add more) to build your code if your project |
| 70 | + # uses a compiled language |
| 71 | + |
| 72 | + #- run: | |
| 73 | + # make bootstrap |
| 74 | + # make release |
| 75 | + |
| 76 | + - name: Perform CodeQL Analysis |
77 | 77 | uses: github/codeql-action/analyze@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # 3.28.1 |
0 commit comments