| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. The ASF licenses this file to You |
| # under the Apache License, Version 2.0 (the "License"); you may not |
| # use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. For additional information regarding |
| # copyright in this work, please see the NOTICE file in the top level |
| # directory of this distribution. |
| |
| # For most projects, this workflow file will not need changing; you simply need |
| # to commit it to your repository. |
| # |
| # You may wish to alter this file to override the set of languages analyzed, |
| # or to provide custom queries or build logic. |
| # |
| name: "CodeQL" |
| |
| on: |
| push: |
| branches: [ master, roller-6.1.x ] |
| pull_request: |
| # The branches below must be a subset of the branches above |
| branches: [ master, roller-6.1.x ] |
| schedule: |
| - cron: '39 16 * * 1' |
| |
| jobs: |
| analyze: |
| name: Analyze |
| runs-on: ubuntu-latest |
| |
| strategy: |
| fail-fast: false |
| matrix: |
| language: [ 'java', 'javascript'] |
| # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] |
| # Learn more: |
| # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed |
| |
| steps: |
| - name: Set up JDK 17 |
| uses: actions/setup-java@v6 |
| with: |
| java-version: 17 |
| distribution: 'zulu' |
| problem-matcher: false |
| |
| - name: Checkout Project |
| uses: actions/checkout@v7 |
| with: |
| persist-credentials: false |
| submodules: false |
| show-progress: false |
| |
| # Initializes the CodeQL tools for scanning. |
| - name: Initialize CodeQL |
| uses: github/codeql-action/init@v4 |
| with: |
| languages: ${{ matrix.language }} |
| config-file: ./.github/codeql/codeql-config.yml |
| |
| - name: Build with Maven |
| run: mvn -DskipTests=true -V -ntp install |
| |
| - name: Perform CodeQL Analysis |
| uses: github/codeql-action/analyze@v4 |