From e7969fb1423cbad1b172fe573f4a41e6143e9fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Font=C3=A1n?= Date: Mon, 1 Apr 2024 20:18:28 +0200 Subject: [PATCH] ci: Updated codeql.yml (code analysis) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gabriel Fontán --- .github/workflows/codeql.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 08c6943..c406de2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -15,10 +15,10 @@ jobs: name: Analyze (${{ matrix.language }}) # Define the operating system for the job (macOS for Swift, Ubuntu for others) - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + runs-on: ubuntu-latest # Define timeout for the job based on the language (2 hours for Swift, 6 hours for others) - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + timeout-minutes: 360 # Define permissions required for the job permissions: @@ -40,11 +40,15 @@ jobs: uses: actions/checkout@v4 # Set up JDK 17 for Java analysis - - name: Set up JDK 17 - uses: actions/setup-java@v2 + - name: set up JDK 17 + uses: actions/setup-java@v3 with: - distribution: 'adopt' java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 # Initialize CodeQL tools for scanning - name: Initialize CodeQL