From 8928a55ce3248c882bcd58bd0db3885c32668e1a Mon Sep 17 00:00:00 2001 From: Shahid Foy Date: Sun, 23 Nov 2025 14:35:07 -0700 Subject: [PATCH] adding codeql --- .github/workflows/codeql-analysis.yml | 53 +++++++++++++++++++++++++++ pom.xml | 6 +-- readme.md | 2 +- 3 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/codeql-analysis.yml 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 ```