Skip to content

Commit

Permalink
Introduce CodeQL security vulnerability analysis (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 authored Apr 15, 2023
1 parent a1227ca commit 9ddd91a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/codeql.yml
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 }}

0 comments on commit 9ddd91a

Please sign in to comment.