From f9ca3187756a54a13633907bb8f4cd8473faaf92 Mon Sep 17 00:00:00 2001 From: games647 Date: Mon, 17 Jul 2023 15:13:40 +0200 Subject: [PATCH] Apply Java version selection after CodeQL init --- .github/workflows/codeql-analysis.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index dbd9d464..419442cf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,6 +20,8 @@ jobs: # Environment runs-on: ubuntu-latest + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + permissions: actions: read contents: read @@ -35,6 +37,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # Setup Java - name: Set up JDK uses: actions/setup-java@v3 @@ -43,12 +51,6 @@ jobs: java-version: 19 cache: 'maven' - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # Auto build attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild