Open yongyan-gh opened 2 years ago
This doesn't work because the args are passed as arguments to clippy, not to the shell. If you want to pipe the output somewhere, you're probably better off not using this action and just adding a step that calls clippy as a shell command.
actions-rs
Actions? If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.communityDescription
SARIF is the industry standard format for static analysis tool output. Github also adapts SARIF format if your Github workflow generates analysis results in SARIF and upload the file, you can see the results in Github security tab of your repo.
clippy itself does not export the results to SARIF, but there are rust crates can convert clippy's JSON output to SARIF file. E.g. clippy-sarif @ https://github.com/psastras/sarif-rs
I tried to pass in the same arguments to clippy-check action, but it failed to execute. Please see the details below:
Workflow code
Action output
Expected behavior
Expecting the clippy command succeeded and generate a SARIF file named results.sarif.
Additional context
The way it generates SARIF output file uses command pipeline, which clippy-check arguments may not support. I think either it supports command pipeline in arguments, or handle the pipeline in action itself, user can just enable SARIF output by specifying arguments.
Thanks!