-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce CodeQL security vulnerability analysis (#573)
- Loading branch information
1 parent
a1227ca
commit 9ddd91a
Showing
1 changed file
with
44 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,44 @@ | ||
# Analyzes the code using GitHub's default CodeQL query database. | ||
# Identified issues are registered with GitHub's code scanning dashboard. When | ||
# a pull request is analyzed, any offending lines are annotated. See | ||
# https://codeql.github.com for details. | ||
name: CodeQL analysis | ||
on: | ||
pull_request: | ||
push: | ||
branches: [ master ] | ||
schedule: | ||
- cron: '0 4 * * 1' | ||
permissions: | ||
contents: read | ||
jobs: | ||
analyze: | ||
strategy: | ||
matrix: | ||
language: [ java, ruby ] | ||
permissions: | ||
contents: read | ||
security-events: write | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17.0.6 | ||
distribution: temurin | ||
cache: maven | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
languages: ${{ matrix.language }} | ||
- name: Perform minimal build | ||
if: matrix.language == 'java' | ||
run: mvn -T1C clean install -DskipTests -Dverification.skip | ||
- name: Perform CodeQL analysis | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
category: /language:${{ matrix.language }} |