mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
See: - https://github.com/github/codeql-action/blob/main/CHANGELOG.md - https://github.com/github/codeql-action/compare/v3.22.12...v3.23.2
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
# Analyzes the code using GitHub's default CodeQL query database.
|
|
# Identified issues are registered with GitHub's code scanning dashboard. When
|
|
# a pull request is analyzed, any offending lines are annotated. See
|
|
# https://codeql.github.com for details.
|
|
name: CodeQL analysis
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ master ]
|
|
schedule:
|
|
- cron: '0 4 * * 1'
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
analyze:
|
|
strategy:
|
|
matrix:
|
|
language: [ java, ruby ]
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Check out code and set up JDK and Maven
|
|
uses: s4u/setup-maven-action@fa2c7e4517ed008b1f73e7e0195a9eecf5582cd4 # v1.11.0
|
|
with:
|
|
java-version: 17.0.8
|
|
java-distribution: temurin
|
|
maven-version: 3.9.6
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
- name: Perform minimal build
|
|
if: matrix.language == 'java'
|
|
run: mvn -T1C clean package -DskipTests -Dverification.skip
|
|
- name: Perform CodeQL analysis
|
|
uses: github/codeql-action/analyze@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
|
|
with:
|
|
category: /language:${{ matrix.language }}
|