Skip to content

Commit

Permalink
Github Actions Add CodeQL Analysis (#1442)
Browse files Browse the repository at this point in the history
Motivation:
Add CodeQL to CI workflow to get additional static code analysis.

Modifications:
- Add codeql-analysis github actions work flow which runs on PRs and
  pushes to the main branch

Result:
More static code analysis.
  • Loading branch information
Scottmitch authored Mar 16, 2021
1 parent bf7b3a2 commit c26cac6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CodeQL
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '0 13 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Execute gradle build
run: ./gradlew --parallel --max-workers=4 clean assemble
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit c26cac6

Please sign in to comment.