trivy icon indicating copy to clipboard operation
trivy copied to clipboard

Why report format do not show standard content?

Open ladung opened this issue 2 years ago • 2 comments

/contrib # trivy image --format template --template "/contrib/html.tpl" -o report.html golang:1.12-alpine
2022-11-16T09:38:37.916Z	INFO	Vulnerability scanning is enabled
2022-11-16T09:38:37.916Z	INFO	Secret scanning is enabled
2022-11-16T09:38:37.916Z	INFO	If your scanning is slow, please try '--security-checks vuln' to disable secret scanning
2022-11-16T09:38:37.916Z	INFO	Please see also https://aquasecurity.github.io/trivy/v0.34/docs/secret/scanning/#recommendation for faster secret detection
2022-11-16T09:38:40.871Z	INFO	Detected OS: alpine
2022-11-16T09:38:40.871Z	INFO	Detecting Alpine vulnerabilities...
2022-11-16T09:38:40.873Z	INFO	Number of language-specific files: 0
2022-11-16T09:38:40.878Z	WARN	This OS version is no longer supported by the distribution: alpine 3.11.3
2022-11-16T09:38:40.878Z	WARN	The vulnerability detection may be insufficient because security updates are not provided
/contrib # l
/bin/sh: l: not found
/contrib # ls
asff.tpl                gitlab-codequality.tpl  gitlab.tpl              html.tpl                junit.tpl               report.html
/contrib # cat report.html 
/contrib/html.tpl/contrib # 

When I scaned image with report format html, file outpput do not show syntax html format?

ladung avatar Nov 16 '22 09:11 ladung

@ladung try to use @ for template flag: --template @"/contrib/html.tpl"

afdesk avatar Nov 16 '22 12:11 afdesk

This issue is stale because it has been labeled with inactivity.

github-actions[bot] avatar Jan 16 '23 00:01 github-actions[bot]