NIFI-12278 Added CodeQL to Static Analysis Job

This closes #7934

Signed-off-by: Chris Sampson <chris.sampson82@gmail.com>
This commit is contained in:
exceptionfactory 2023-10-25 14:21:47 -05:00 committed by Chris Sampson
parent 2eb5b79353
commit 39898d1ee2
No known key found for this signature in database
GPG Key ID: 546AEB0826587237
1 changed files with 15 additions and 1 deletions

View File

@ -79,11 +79,12 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:
security-events: write
contents: read contents: read
jobs: jobs:
static-analysis: static-analysis:
timeout-minutes: 30 timeout-minutes: 120
name: Static Analysis name: Static Analysis
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -109,6 +110,19 @@ jobs:
--no-transfer-progress --no-transfer-progress
--fail-fast --fail-fast
-P contrib-check -P contrib-check
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java
- name: Maven Compile
env:
MAVEN_OPTS: >-
${{ env.COMPILE_MAVEN_OPTS }}
run: >
${{ env.MAVEN_COMMAND }}
${{ env.MAVEN_COMPILE_COMMAND }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
ubuntu-build-en: ubuntu-build-en:
timeout-minutes: 120 timeout-minutes: 120