2022-12-14 16:50:00 +03:00
|
|
|
# synced from @nextcloud/android-config
|
2024-02-29 22:23:57 +03:00
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
# SPDX-FileCopyrightText: 2023-2024 Andy Scherzinger <info@andy-scherzinger.de>
|
|
|
|
# SPDX-FileCopyrightText: 2022 Tobias Kaminsky <tobias@kaminsky.me>
|
|
|
|
# SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
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
|
2024-09-27 00:22:11 +03:00
|
|
|
runs-on: ubuntu-24.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
|
2024-10-23 18:53:06 +03:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
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
|
2024-10-22 19:45:38 +03:00
|
|
|
uses: github/codeql-action/init@662472033e021d55d94146f66f6058822b0b39fd # v3.27.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
|
2024-10-24 18:55:10 +03:00
|
|
|
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.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"
|
2024-03-17 17:25:43 +03:00
|
|
|
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
|
2024-01-22 21:36:07 +03:00
|
|
|
./gradlew assembleDebug
|
2022-12-16 12:37:19 +03:00
|
|
|
- name: Perform CodeQL Analysis
|
2024-10-22 19:45:38 +03:00
|
|
|
uses: github/codeql-action/analyze@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
|