Merge pull request #118 from tmfg/feature/DPO-2157 #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: "22 20 * * 0" | |
jobs: | |
analyze: | |
if: github.repository == 'tmfg/digitraffic-road' | |
name: Analyze | |
runs-on: ubuntu-22.04 | |
permissions: | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["java"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Checkout dependencies | |
uses: actions/checkout@v4 | |
with: | |
repository: tmfg/digitraffic-build-dependencies | |
ssh-key: ${{ secrets.DEPENDENCY_SSH_KEY }} | |
path: digitraffic-build-dependencies | |
sparse-checkout: | | |
jms | |
- name: Setup dependencies | |
run: cp -R digitraffic-build-dependencies/jms/ ~/.m2/ | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: corretto | |
cache: maven | |
- name: Compile | |
run: mvn install -T1.5C git-commit-id:revision install -e -U -DskipTests=true | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: "/language:${{matrix.language}}" |