Skip to content

Bump com.puppycrawl.tools:checkstyle from 10.21.0 to 10.21.1 #808

Bump com.puppycrawl.tools:checkstyle from 10.21.0 to 10.21.1

Bump com.puppycrawl.tools:checkstyle from 10.21.0 to 10.21.1 #808

Workflow file for this run

name: Infer Report
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
infer:
name: Static analysis (Infer)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Install And Run Infer
run: |
# ref: https://sobaigu.com/shell-get-lastest-version-from-github.html
INFER_VERSION=$(wget -qO- -t1 -T2 "https://api.github.com/repos/facebook/infer/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g;s/v//g')
INFER_FILENAME=infer-linux-x86_64-v${INFER_VERSION}
wget "https://github.com/facebook/infer/releases/download/v${INFER_VERSION}/${INFER_FILENAME}.tar.xz"
tar xJf "${INFER_FILENAME}.tar.xz"
rm -rf "${INFER_FILENAME}.tar.xz"
./${INFER_FILENAME}/bin/infer --version
./${INFER_FILENAME}/bin/infer --java-version 17 --sarif -- mvn -DskipTests=true clean package
ls -al ./infer-out/
- name: Upload SARIF output to GitHub Security Center
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: infer-out/report.sarif
category: infer