| # 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 ] |
| pull_request: |
| # The branches below must be a subset of the branches above |
| branches: [ master ] |
| 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@v3 |
| with: |
| java-version: 17 |
| distribution: 'zulu' |
| |
| - name: Checkout Project |
| uses: actions/checkout@v3 |
| with: |
| persist-credentials: false |
| submodules: false |
| |
| # Initializes the CodeQL tools for scanning. |
| - name: Initialize CodeQL |
| uses: github/codeql-action/init@v2 |
| 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@v2 |