Skip to content

Spotbugs sarif output file not found by upload-sarif@v3 action #3

@orende

Description

@orende

Running the Action with the following options:

      - name: Run SpotBugs tool
        uses: jmservera/spotbugs-github-action@v0.2.0-alpha
        with:
          spotbugs-version: latest
          packages: org.jamwiki.*
          outputType: sarif
          arguments: "-effort:more -low -noClassOk"
          progress: true
      - name: Upload analysis results to GitHub Security tab
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: ${{github.workspace}}/results.sarif

results in the following error logs:

Run github/codeql-action/upload-sarif@v3
with:
sarif_file: ../results
checkout_path: /home/runner/work/jamwiki/jamwiki
token: ***
matrix: null
wait-for-processing: true
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.16-8/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.16-8/x64
Warning: Resource not accessible by integration - https://docs.github.com/rest
Error: Path does not exist: ../results
Warning: Resource not accessible by integration - https://docs.github.com/rest

See this run for an more info.

As an additional note, it works if I set the sarif_file argument to ${{github.workspace}}/resultspre.sarif.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions