|
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 |
| - |
18 |
| -on: |
19 |
| - push: |
20 |
| - branches: [ master ] |
21 |
| - pull_request: |
22 |
| - # The branches below must be a subset of the branches above |
23 |
| - branches: [ master ] |
24 |
| - schedule: |
25 |
| - - cron: '33 9 * * 4' |
26 |
| - |
27 |
| -permissions: |
28 |
| - contents: read |
29 |
| - |
30 |
| -jobs: |
31 |
| - analyze: |
32 |
| - name: Analyze |
33 |
| - runs-on: ubuntu-latest |
34 |
| - permissions: |
35 |
| - actions: read |
36 |
| - contents: read |
37 |
| - security-events: write |
38 |
| - |
39 |
| - strategy: |
40 |
| - fail-fast: false |
41 |
| - matrix: |
42 |
| - language: [ 'java' ] |
43 |
| - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
44 |
| - # Learn more about CodeQL language support at https://git.io/codeql-language-support |
45 |
| - |
46 |
| - steps: |
47 |
| - - 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 | + |
| 18 | +on: |
| 19 | + push: |
| 20 | + branches: [ master ] |
| 21 | + pull_request: |
| 22 | + # The branches below must be a subset of the branches above |
| 23 | + branches: [ master ] |
| 24 | + schedule: |
| 25 | + - cron: '33 9 * * 4' |
| 26 | + |
| 27 | +permissions: |
| 28 | + contents: read |
| 29 | + |
| 30 | +jobs: |
| 31 | + analyze: |
| 32 | + name: Analyze |
| 33 | + runs-on: ubuntu-latest |
| 34 | + permissions: |
| 35 | + actions: read |
| 36 | + contents: read |
| 37 | + security-events: write |
| 38 | + |
| 39 | + strategy: |
| 40 | + fail-fast: false |
| 41 | + matrix: |
| 42 | + language: [ 'java' ] |
| 43 | + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
| 44 | + # Learn more about CodeQL language support at https://git.io/codeql-language-support |
| 45 | + |
| 46 | + steps: |
| 47 | + - name: Checkout repository |
48 | 48 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
|
49 |
| - with: |
50 |
| - persist-credentials: false |
| 49 | + with: |
| 50 | + persist-credentials: false |
51 | 51 | - uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
52 |
| - with: |
53 |
| - path: ~/.m2/repository |
54 |
| - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
55 |
| - restore-keys: | |
56 |
| - ${{ runner.os }}-maven- |
57 |
| -
|
58 |
| - # Initializes the CodeQL tools for scanning. |
59 |
| - - name: Initialize CodeQL |
| 52 | + with: |
| 53 | + path: ~/.m2/repository |
| 54 | + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
| 55 | + restore-keys: | |
| 56 | + ${{ runner.os }}-maven- |
| 57 | +
|
| 58 | + # Initializes the CodeQL tools for scanning. |
| 59 | + - name: Initialize CodeQL |
60 | 60 | uses: github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # 3.28.1
|
61 |
| - with: |
62 |
| - languages: ${{ matrix.language }} |
63 |
| - # If you wish to specify custom queries, you can do so here or in a config file. |
64 |
| - # By default, queries listed here will override any specified in a config file. |
65 |
| - # Prefix the list here with "+" to use these queries and those in the config file. |
66 |
| - # queries: ./path/to/local/query, your-org/your-repo/queries@main |
67 |
| - |
68 |
| - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
69 |
| - # If this step fails, then you should remove it and run the build manually (see below) |
70 |
| - - name: Autobuild |
| 61 | + with: |
| 62 | + languages: ${{ matrix.language }} |
| 63 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 64 | + # By default, queries listed here will override any specified in a config file. |
| 65 | + # Prefix the list here with "+" to use these queries and those in the config file. |
| 66 | + # queries: ./path/to/local/query, your-org/your-repo/queries@main |
| 67 | + |
| 68 | + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
| 69 | + # If this step fails, then you should remove it and run the build manually (see below) |
| 70 | + - name: Autobuild |
71 | 71 | uses: github/codeql-action/autobuild@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # 3.28.1
|
72 |
| - |
73 |
| - # ℹ️ Command-line programs to run using the OS shell. |
74 |
| - # 📚 https://git.io/JvXDl |
75 |
| - |
76 |
| - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
77 |
| - # and modify them (or add more) to build your code if your project |
78 |
| - # uses a compiled language |
79 |
| - |
80 |
| - #- run: | |
81 |
| - # make bootstrap |
82 |
| - # make release |
83 |
| - |
84 |
| - - name: Perform CodeQL Analysis |
| 72 | + |
| 73 | + # ℹ️ Command-line programs to run using the OS shell. |
| 74 | + # 📚 https://git.io/JvXDl |
| 75 | + |
| 76 | + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
| 77 | + # and modify them (or add more) to build your code if your project |
| 78 | + # uses a compiled language |
| 79 | + |
| 80 | + #- run: | |
| 81 | + # make bootstrap |
| 82 | + # make release |
| 83 | + |
| 84 | + - name: Perform CodeQL Analysis |
85 | 85 | uses: github/codeql-action/analyze@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # 3.28.1
|
0 commit comments