Skip to content

test path replacement #3

test path replacement

test path replacement #3

Workflow file for this run

name: "SpotBugs"
on:
push:
branches: [ adamve/spotbugs-reports-v3 ]
pull_request:
branches: [ adamve/spotbugs-reports-v3 ]
schedule:
- cron: '25 16 * * 0'
jobs:
spotbugs-analyze:
name: SpotBugs Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Build with Gradle
run: ./gradlew spotbugsRelease spotbugsMain
- name: Fix SARIF
run: |
cat <<< $(jq '.runs |= map( if .taxonomies == [null] then .taxonomies = [] else . end)' ./build/spotbugs/spotbugs-support.sarif) > ./build/spotbugs/spotbugs-support.sarif
cat <<< $(jq '.runs[].results[].locations[].physicalLocation.artifactLocation.uri |= "core/src/main/java/" + .' ./build/spotbugs/spotbugs-core.sarif) > ./build/spotbugs/spotbugs-core.sarif
- name: upload SARIF
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: build/spotbugs/
category: spotbugs-analysis