Skip to content

Commit

Permalink
Add Static Code Analysis Job
Browse files Browse the repository at this point in the history
  • Loading branch information
knoppiks committed Jul 10, 2024
1 parent 3336302 commit 2c69798
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
push:
branches: [ "*" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "main" ]

jobs:
analyze:
permissions:
security-events: write
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
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

<repositories>
<repository>
<id>git.smith.care</id>
<url>https://git.smith.care/api/v4/projects/135/packages/maven</url>
<id>github</id>
<url>https://maven.pkg.github.com/UMEssen/DeidentiFHIR</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
Expand Down Expand Up @@ -143,6 +143,11 @@
</pluginManagement>

<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
Expand Down

0 comments on commit 2c69798

Please sign in to comment.