Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Sarif uploads #15

Open
i-walker opened this issue Mar 18, 2022 · 0 comments
Open

Fix Sarif uploads #15

i-walker opened this issue Mar 18, 2022 · 0 comments

Comments

@i-walker
Copy link
Member

i-walker commented Mar 18, 2022

Currently there not being generated by another tool to be uploaded.

Run github/codeql-action/upload-sarif@v1.1.5
[23](https://github.com/arrow-kt/arrow-analysis/runs/5606778446?check_suite_focus=true#step:9:23)
Error: No SARIF files found to upload in "sarif".
[24](https://github.com/arrow-kt/arrow-analysis/runs/5606778446?check_suite_focus=true#step:9:24)
Error: No SARIF files found to upload in "sarif".
[25](https://github.com/arrow-kt/arrow-analysis/runs/5606778446?check_suite_focus=true#step:9:25)
    at getSarifFilePaths (/home/runner/work/_actions/github/codeql-action/v1.1.5/lib/upload-lib.js:155:19)
[26](https://github.com/arrow-kt/arrow-analysis/runs/5606778446?check_suite_focus=true#step:9:26)
    at Object.uploadFromActions (/home/runner/work/_actions/github/codeql-action/v1.1.5/lib/upload-lib.js:137:30)
[27](https://github.com/arrow-kt/arrow-analysis/runs/5606778446?check_suite_focus=true#step:9:27)
    at run (/home/runner/work/_actions/github/codeql-action/v1.1.5/lib/upload-sarif-action.js:51:47)
[28](https://github.com/arrow-kt/arrow-analysis/runs/5606778446?check_suite_focus=true#step:9:28)
    at async runWrapper (/home/runner/work/_actions/github/codeql-action/v1.1.5/lib/upload-sarif-action.js:69:9)

If we set up detekt or another 3rd party tool we can set-up aa step with:

- name: Upload Code Scanning code analysis report
  if: always()
  uses: github/codeql-action/upload-sarif@v1
  with:
    sarif_file: 'build/reports/detekt/main.sarif'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant