Skip to content

feat(ci): introduce codeql #2

feat(ci): introduce codeql

feat(ci): introduce codeql #2

Workflow file for this run

name: CodeQL Analysis
on:
pull_request:
types: [ opened, reopened, synchronize ]
push:
branches:
- main
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
- name: Install flatc
run: sudo bash install_flatc.sh
- name: Initialize CodeQL
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