diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..88d505f --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,53 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '0 17 * * 1' + +jobs: + analyze: + name: Analyze (CodeQL) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + 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@v3 + with: + languages: ${{ matrix.language }} + + - name: Set up Java + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Cache Maven dependencies + uses: actions/cache@v4 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Build with Maven + run: mvn -B -f pom.xml clean install -DskipTests + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/pom.xml b/pom.xml index 4bd24c0..1da4bf4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.n1netails n1netails-teams-webhook-client - 0.1.0 + 0.1.1 jar n1netails-teams-webhook-client @@ -46,14 +46,14 @@ org.projectlombok lombok - 1.18.38 + 1.18.42 provided com.google.code.gson gson - 2.11.0 + 2.13.2 diff --git a/readme.md b/readme.md index 226938e..d209d1a 100644 --- a/readme.md +++ b/readme.md @@ -42,7 +42,7 @@ Install the teams webhook client by adding the following dependency: com.n1netails n1netails-teams-webhook-client - 0.1.0 + 0.1.1 ```