Skip to content

CI - CodeQL (Android) #38

CI - CodeQL (Android)

CI - CodeQL (Android) #38

# SPDX-FileCopyrightText: 2024 Dom Rodriguez <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
---
name: CI - CodeQL (Android)
on:
workflow_call:
schedule:
- cron: '31 9 * * 3'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
env:
IS_OUTSIDE_BSP: true
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: true
matrix:
include:
- language: java-kotlin
build-mode: autobuild
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
cache: 'gradle'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"