mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
45 lines
1.4 KiB
YAML
45 lines
1.4 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
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
|
with:
|
|
persist-credentials: false
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
|
|
with:
|
|
java-version: 17.0.7
|
|
distribution: temurin
|
|
cache: maven
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
- name: Perform minimal build
|
|
if: matrix.language == 'java'
|
|
run: mvn -T1C clean install -DskipTests -Dverification.skip
|
|
- name: Perform CodeQL analysis
|
|
uses: github/codeql-action/analyze@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
|
|
with:
|
|
category: /language:${{ matrix.language }}
|