build(deps): bump protobuf.version from 4.33.2 to 4.33.4 #1194
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: 'zulu' | |
| - name: Cache Maven packages | |
| uses: actions/cache@v5 | |
| 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@v4 | |
| with: | |
| sarif_file: infer-out/report.sarif | |
| category: infer |