-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate code ql steps into check job
- Loading branch information
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,16 @@ jobs: | |
detekt_config: internal/detekt-config.yml | ||
|
||
check: | ||
name: Build and test | ||
name: Build, test and analyze | ||
runs-on: ubuntu-latest | ||
needs: detekt | ||
timeout-minutes: 120 | ||
permissions: # needed for CodeQL steps | ||
security-events: write | ||
packages: read | ||
actions: read | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
@@ -44,3 +51,15 @@ jobs: | |
|
||
- name: Build and test | ||
run: chmod +x ./gradlew && ./gradlew build | ||
|
||
# CodeQL needs project build! | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: java-kotlin | ||
build-mode: manual | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:java-kotlin" |