Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 6.0.3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6.0.2...v6.0.3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
name: "CodeQL Advanced"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master", "1.0" ]
|
|
pull_request:
|
|
branches: [ "master", "1.0" ]
|
|
schedule:
|
|
- cron: '15 18 * * 3'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
|
permissions:
|
|
# required for all workflows
|
|
security-events: write
|
|
# required to fetch internal or private CodeQL packs
|
|
# packages: read
|
|
# only required for workflows in private repositories
|
|
# actions: read
|
|
# contents: read
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- language: actions
|
|
build-mode: none
|
|
- language: java-kotlin
|
|
build-mode: manual
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6.0.3
|
|
|
|
- name: Setup Java 21
|
|
if: matrix.language == 'java-kotlin'
|
|
uses: actions/setup-java@v5.2.0
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
build-mode: ${{ matrix.build-mode }}
|
|
|
|
- name: Build with Maven
|
|
if: matrix.build-mode == 'manual'
|
|
shell: bash
|
|
run: mvn install -DskipTests
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|