Skip to content

Commit

Permalink
ci: Updated codeql.yml (code analysis)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fontán <[email protected]>
  • Loading branch information
BobbyESP committed Apr 1, 2024
1 parent a2cd612 commit e7969fb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit e7969fb

Please sign in to comment.