🔄 synced file(s) with nextcloud/android-config #2186
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # synced from @nextcloud/android-config | |
| # 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-FileCopyrightText: 2025 Marcel Hibbe <dev@mhibbe.de> | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| name: "CodeQL" | |
| on: | |
| push: | |
| branches: [ "master", "main", "stable-*" ] | |
| pull_request: | |
| branches: [ "master", "main" ] | |
| schedule: | |
| - cron: '24 18 * * 3' | |
| permissions: | |
| contents: read | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ 'java' ] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set Swap Space | |
| if: runner.environment == 'github-hosted' | |
| uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0 | |
| with: | |
| swap-size-gb: 10 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0 | |
| with: | |
| distribution: "temurin" | |
| java-version: 17 | |
| - name: Assemble | |
| run: | | |
| mkdir -p "$HOME/.gradle" | |
| echo "org.gradle.jvmargs=-Xmx3g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties" | |
| ./gradlew --no-daemon assembleDebug | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9 |