-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c57a79d
commit eb989ce
Showing
1 changed file
with
47 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: CodeQL | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- 'src/**' | ||
schedule: | ||
# Weekly schedule | ||
- cron: '43 7 * * 1' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: 'ubuntu-latest' | ||
timeout-minutes: 360 | ||
permissions: | ||
# required for CodeQL to raise security issues on the repo | ||
security-events: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
fetch-depth: '0' | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@379614612a29c9e28f31f39a59013eb8012a51f0 | ||
with: | ||
# CodeQL options: [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] | ||
languages: 'java-kotlin' | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Compile project | ||
run: mvn clean compile | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@379614612a29c9e28f31f39a59013eb8012a51f0 | ||
with: | ||
category: "/language:java-kotlin" | ||
|