Skip to content

Commit 3f6efe9

Browse files
authored
Integrate Github CodeQL Analysis into CI (#905)
1 parent b4c42f9 commit 3f6efe9

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14+
name: build
1415
runs-on: ubuntu-latest
1516

1617
steps:
@@ -23,6 +24,11 @@ jobs:
2324
- name: Checkout security
2425
uses: actions/checkout@v2
2526

27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v1
29+
with:
30+
languages: java
31+
2632
- name: Cache Maven packages
2733
uses: actions/cache@v1
2834
with:
@@ -33,6 +39,12 @@ jobs:
3339
- name: Checkstyle
3440
run: mvn -B checkstyle:checkstyle
3541

42+
- name: Package
43+
run: mvn -B clean package -Padvanced -DskipTests
44+
45+
- name: Perform CodeQL Analysis
46+
uses: github/codeql-action/analyze@v1
47+
3648
- name: Test
3749
run: OPENDISTRO_SECURITY_TEST_OPENSSL_OPT=true mvn -B test
3850

@@ -41,9 +53,6 @@ jobs:
4153
with:
4254
token: ${{ secrets.CODECOV_TOKEN }}
4355

44-
- name: Package
45-
run: mvn -B clean package -Padvanced -DskipTests
46-
4756
- name: Upload Artifacts
4857
uses: actions/upload-artifact@v1
4958
with:

0 commit comments

Comments
 (0)