From cb5e2f90a2a0984a921a6c53f96d7ef743249031 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Thu, 24 Mar 2022 20:33:49 +0000 Subject: [PATCH] Move CodeQL into parallel workfow Signed-off-by: Peter Nied --- .github/workflows/ci.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96bf96185a..6c281609b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,11 +32,6 @@ jobs: - name: Checkout security uses: actions/checkout@v2 - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: java - - name: Cache Gradle packages uses: actions/cache@v2 with: @@ -50,9 +45,6 @@ jobs: - name: Package run: ./gradlew clean build -Dbuild.snapshot=false -x test - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 - - name: Test run: OPENDISTRO_SECURITY_TEST_OPENSSL_OPT=true ./gradlew test -i @@ -69,6 +61,19 @@ jobs: cd bwc-test/ ./gradlew bwcTestSuite -Dtests.security.manager=false + code-ql: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 11 + - uses: github/codeql-action/init@v1 + with: + languages: java + - run: ./gradlew clean build -Dbuild.snapshot=false -x test + - uses: github/codeql-action/analyze@v1 + build-artifact-names: runs-on: ubuntu-latest steps: