From d1518c25615c28d59280964b457221b49aa24a33 Mon Sep 17 00:00:00 2001 From: NichtStudioCode <51272202+NichtStudioCode@users.noreply.github.com> Date: Sat, 17 Dec 2022 14:28:19 +0100 Subject: [PATCH] CodeQL workflow --- .github/workflows/codeql.yml | 52 ++++++++++++++++++++++++++++++++++++ InventoryAccess/IA/pom.xml | 4 +-- pom.xml | 18 ++++++++++++- 3 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..27962a6 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,52 @@ +name: "CodeQL" + +on: + push: + branches: [ "**" ] + pull_request: + branches: [ "**" ] + schedule: + - cron: '21 11 * * 5' + +jobs: + analyze: + name: Analyze + 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@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: 17 + distribution: adopt + server-id: xenondevs-nms + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - name: Build with Maven + run: mvn -B clean package -P xenondevs-nms + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file diff --git a/InventoryAccess/IA/pom.xml b/InventoryAccess/IA/pom.xml index 8f0dd61..abba187 100644 --- a/InventoryAccess/IA/pom.xml +++ b/InventoryAccess/IA/pom.xml @@ -34,13 +34,13 @@ net.kyori adventure-api - 4.11.0 + 4.12.0 provided net.kyori adventure-text-serializer-gson - 4.11.0 + 4.12.0 provided diff --git a/pom.xml b/pom.xml index f810e0a..55591c8 100644 --- a/pom.xml +++ b/pom.xml @@ -13,6 +13,18 @@ UTF-8 + + + xenondevs-nms + + + xenondevs-nms + https://repo.xenondevs.xyz/nms/ + + + + + xenondevs @@ -29,13 +41,17 @@ minecraft-repo https://libraries.minecraft.net/ + + codemc-maven-public + https://repo.codemc.org/repository/maven-public/ + org.jetbrains annotations - 23.0.0 + 23.1.0 compile