From 6aedba448a8894007612d720cb80f41f6b9bc5fa Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Fri, 24 Nov 2023 18:56:22 +0100 Subject: [PATCH] clean up ci scripts --- .github/workflows/build.yml | 1 - .github/workflows/codeql-analysis.yml | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0543596..503ff532 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,6 @@ jobs: build: name: Build and Test runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 45c95548..b90c55f8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,7 +13,8 @@ jobs: analyse: name: Analyse runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" + # dependeabot has on push events only read-only access, but codeql requires write access + if: ${{ !(github.actor == 'dependabot[bot]' && contains(fromJSON('["push"]'), github.event_name)) }} steps: - uses: actions/checkout@v4 with: @@ -28,7 +29,7 @@ jobs: uses: github/codeql-action/init@v2 with: languages: java - - name: Build and Test + - name: Build run: mvn -B install -DskipTests - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 \ No newline at end of file