Add CodeQl code scanning

This commit is contained in:
Wolf Montwé 2023-03-03 11:06:23 +01:00
parent 97feede785
commit cb689fcc4f
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72

37
.github/workflows/codeql.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: CodeQL - Code scanning
on:
schedule:
- cron: '0 10 * * 1'
jobs:
codeql-scan:
strategy:
fail-fast: false
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2
- uses: github/codeql-action/init@v2
with:
languages: java
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2