Open Jiri-Stary opened 1 year ago
Hi @Jiri-Stary -- sorry for the delay here; you're right, today if you use the table
output format, this defaults to output to the log instead of a file, however there is a workaround if you really want this output to a file, you can use the GRYPE_FILE
environment variable, e.g.:
- uses: anchore/scan-action@main
id: scan-table-to-file
with:
image: alpine:3.15
fail-build: false
severity-cutoff: medium
output-format: table
env:
GRYPE_FILE: table.out
Example run here: https://github.com/kzantow-anchore/scan-action-test/actions/runs/10924951451/job/30325259711#step:5:9
Developer note: we may want to support multiple outputs and/or template output, which also could help improve this experience, but we probably won't change the default behavior here; also, adding an output-file
property explicitly should cause table output to a file instead of the console.
Currently there is no way to store output in table format.
I am running few different scanners in my workflow an would like to control when i show the output to the user. Currently there is no way how to store the output to a text file in table format.