2023-01-28 05:39:34 +03:00
|
|
|
# synced from @nextcloud/android-config
|
2024-03-01 05:22:25 +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
|
|
|
|
|
2023-01-28 05:39:34 +03:00
|
|
|
name: "CodeQL"
|
2022-04-15 13:14:45 +03:00
|
|
|
|
|
|
|
on:
|
2023-01-28 05:39:34 +03:00
|
|
|
push:
|
|
|
|
branches: [ "master", "main", "stable-*" ]
|
2022-04-15 13:14:45 +03:00
|
|
|
pull_request:
|
2023-01-28 05:39:34 +03:00
|
|
|
branches: [ "master", "main" ]
|
2022-04-15 13:14:45 +03:00
|
|
|
schedule:
|
2023-01-28 05:39:34 +03:00
|
|
|
- cron: '24 18 * * 3'
|
2022-04-15 13:14:45 +03:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
2023-01-28 05:39:34 +03:00
|
|
|
analyze:
|
|
|
|
name: Analyze
|
2023-06-21 05:34:34 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2023-01-28 05:39:34 +03:00
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'java' ]
|
2022-04-15 13:14:45 +03:00
|
|
|
steps:
|
2023-01-28 05:39:34 +03:00
|
|
|
- name: Checkout repository
|
2024-06-13 08:55:36 +03:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-01-28 05:39:34 +03:00
|
|
|
- name: Set Swap Space
|
|
|
|
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0
|
|
|
|
with:
|
|
|
|
swap-size-gb: 10
|
2022-04-15 13:14:45 +03:00
|
|
|
- name: Initialize CodeQL
|
2024-06-13 08:55:36 +03:00
|
|
|
uses: github/codeql-action/init@530d4feaa9c62aaab2d250371e2061eb7a172363 # v3.25.9
|
2023-01-28 05:39:34 +03:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2023-06-07 05:51:12 +03:00
|
|
|
- name: Set up JDK 17
|
2024-03-16 05:25:22 +03:00
|
|
|
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
|
2022-04-15 13:14:45 +03:00
|
|
|
with:
|
2024-01-26 05:20:18 +03:00
|
|
|
distribution: "temurin"
|
|
|
|
java-version: 17
|
2023-01-28 05:39:34 +03:00
|
|
|
- name: Assemble
|
|
|
|
run: |
|
|
|
|
mkdir -p "$HOME/.gradle"
|
2024-03-20 05:17:21 +03:00
|
|
|
echo "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
|
2024-01-26 05:20:18 +03:00
|
|
|
./gradlew assembleDebug
|
2022-04-15 13:14:45 +03:00
|
|
|
- name: Perform CodeQL Analysis
|
2024-06-13 08:55:36 +03:00
|
|
|
uses: github/codeql-action/analyze@530d4feaa9c62aaab2d250371e2061eb7a172363 # v3.25.9
|