diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e69de29b..de94a72e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build + +on: + push: + branches: [ "*" ] + tags: [ "v*.*.*" ] + pull_request: + branches: [ "main" ] + +jobs: + analyze: + permissions: + packages: read + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + cache: 'maven' + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: java + queries: security-and-quality + + - name: Build + run: mvn -B compile + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/pom.xml b/pom.xml index 0dd0469f..7448b96f 100644 --- a/pom.xml +++ b/pom.xml @@ -32,8 +32,8 @@ - git.smith.care - https://git.smith.care/api/v4/projects/135/packages/maven + github + https://maven.pkg.github.com/UMEssen/DeidentiFHIR false @@ -143,6 +143,11 @@ + + maven-compiler-plugin + 3.13.0 + + org.codehaus.mojo flatten-maven-plugin