2022-12-14 16:50:00 +03:00
|
|
|
# synced from @nextcloud/android-config
|
2022-06-09 11:47:55 +03:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-07-21 14:57:15 +03:00
|
|
|
branches: [ "master", "main", "stable-*" ]
|
2022-06-09 11:47:55 +03:00
|
|
|
pull_request:
|
2022-07-21 14:57:15 +03:00
|
|
|
branches: [ "master", "main" ]
|
2022-06-09 11:47:55 +03:00
|
|
|
schedule:
|
|
|
|
- cron: '24 18 * * 3'
|
|
|
|
|
2022-07-01 10:06:42 +03:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-06-09 11:47:55 +03:00
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
2023-06-14 12:24:36 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2022-06-09 11:47:55 +03:00
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-12-16 12:37:19 +03:00
|
|
|
language: [ 'java' ]
|
2022-06-09 11:47:55 +03:00
|
|
|
steps:
|
2022-12-16 12:37:19 +03:00
|
|
|
- name: Checkout repository
|
2023-06-11 06:05:49 +03:00
|
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2022-12-16 12:37:19 +03:00
|
|
|
- name: Set Swap Space
|
|
|
|
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0
|
|
|
|
with:
|
2022-12-14 16:50:00 +03:00
|
|
|
swap-size-gb: 10
|
2022-12-16 12:37:19 +03:00
|
|
|
- name: Initialize CodeQL
|
2023-07-20 15:54:36 +03:00
|
|
|
uses: github/codeql-action/init@1813ca74c3faaa3a2da2070b9b8a0b3e7373a0d8 # v2.21.0
|
2022-12-16 12:37:19 +03:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2023-06-07 05:51:01 +03:00
|
|
|
- name: Set up JDK 17
|
2023-07-25 08:52:41 +03:00
|
|
|
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
|
2022-12-16 12:37:19 +03:00
|
|
|
with:
|
|
|
|
distribution: "temurin"
|
2023-04-14 20:20:30 +03:00
|
|
|
java-version: 17
|
2022-12-16 12:37:19 +03:00
|
|
|
- name: Assemble
|
|
|
|
run: |
|
|
|
|
mkdir -p "$HOME/.gradle"
|
|
|
|
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
|
|
|
|
./gradlew assembleDebug
|
|
|
|
- name: Perform CodeQL Analysis
|
2023-07-20 15:54:36 +03:00
|
|
|
uses: github/codeql-action/analyze@1813ca74c3faaa3a2da2070b9b8a0b3e7373a0d8 # v2.21.0
|