From 1d39d8787480f536b698b4eb9bcbe132db6b9e2f Mon Sep 17 00:00:00 2001 From: Mattis Janitz Date: Wed, 6 Dec 2023 09:07:37 +0100 Subject: [PATCH] Legg til codeql (#924) --- .github/workflows/codeql-analysis.yml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) 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 000000000..4a18a4fcd --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,38 @@ +name: CodeQL +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * 3' +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: [ 'kotlin' ] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + - name: Setup java + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 21 + - name: Bygg med maven + env: + GITHUB_USERNAME: x-access-token + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: mvn -B --no-transfer-progress package --settings .m2/maven-settings.xml --file pom.xml + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file