mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
See: - https://maven.apache.org/release-notes-all.html - https://github.com/apache/maven/releases/tag/maven-3.9.6 - https://github.com/apache/maven/releases/tag/maven-3.9.7 - https://github.com/apache/maven/releases/tag/maven-3.9.8 - https://github.com/apache/maven/compare/maven-3.9.5...maven-3.9.8
53 lines
1.8 KiB
YAML
53 lines
1.8 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: Install Harden-Runner
|
|
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
|
|
with:
|
|
disable-sudo: true
|
|
egress-policy: block
|
|
allowed-endpoints: >
|
|
api.adoptium.net:443
|
|
api.github.com:443
|
|
github.com:443
|
|
objects.githubusercontent.com:443
|
|
repo.maven.apache.org:443
|
|
uploads.github.com:443
|
|
- name: Check out code and set up JDK and Maven
|
|
uses: s4u/setup-maven-action@489441643219d2b93ee2a127b2402eb640a1b947 # v1.13.0
|
|
with:
|
|
java-version: 17.0.10
|
|
java-distribution: temurin
|
|
maven-version: 3.9.8
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
|
|
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@c7f9125735019aa87cfc361530512d50ea439c71 # v3.25.1
|
|
with:
|
|
category: /language:${{ matrix.language }}
|