Skip to content

Commit

Permalink
Add CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber committed Jul 18, 2023
1 parent ee9706d commit 5c51072
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/[email protected]
with:
distribution: 'zulu'
java-version-file: .ci-java-version

- uses: gradle/[email protected]

- name: Setup Gradle
uses: gradle/[email protected]
with:
gradle-version: wrapper

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java

- run: |
echo "Run, Build Application using script"
./gradlew assemble
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx4g -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=1024m"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 5c51072

Please sign in to comment.