Skip to content

CodeQL

CodeQL #405

Workflow file for this run

# Copyright 2023, Gerwin Klein, Régis Décamps, Steve Rowe
# SPDX-License-Identifier: BSD-3-Clause
name: "CodeQL"
on:
push:
branches: [ "master", "aggregated-java-sources" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "35 9 * * 2"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ java ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
upload: False
output: sarif-results
- name: Filter Scanning Results
uses: advanced-security/filter-sarif@v1
with:
patterns: |
-**/LexParse.java:java/local-variable-is-never-read
-**/LexParse.java:java/non-static-nested-class
-**/LexParse.java:java/deprecated-call
-**/LexParse.java:java/missing-override-annotation
-**/LexScan.java:java/misleading-indentation
-**/LexScan.java:java/uncaught-number-format-exception
-**/LexScan.java:java/missing-override-annotation
input: sarif-results/java.sarif
output: sarif-results/java.sarif
- name: Upload Scanning Results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: sarif-results/java.sarif