Skip to content

Commit

Permalink
integrate code ql steps into check job
Browse files Browse the repository at this point in the history
  • Loading branch information
eldcn committed May 30, 2024
1 parent 7f1a401 commit e54415b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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"

0 comments on commit e54415b

Please sign in to comment.