| # 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 |