-
@wds3817 thanks for the detailed report. This helps a lot. Will be fixed in next release.
-
State changed as build OD-7720 (16.1.0) is successful
-
OneDev
changed state to 'Closed' 2 weeks ago
Previous Value Current Value Open
Closed
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
16.0.8
|
| Labels |
No labels
|
Issue Votes (0)
The "Trivy Container Image Scanner" step fails before trivy even starts, with a shell syntax error from the generated step script. Other scanner steps work fine in the same environment, so the issue appears specific to this step's script generation (possibly a bash-only construct such as
&>or<<<being executed by POSIX sh/ash in the trivy image).Environment
1dev/server, with/var/run/docker.sockmounted)1dev/crane:1.0.0,1dev/trivy:1.0.5Steps to reproduce
Actual result
The "pull image" step succeeds (OCI layout produced). The trivy step then fails in ~3 seconds, before any scanning output:
What I ruled out
image-vulnerabilitiesandImage Vulnerabilities.1dev/trivy:1.0.5image (scans lock files and publishes its report normally).So among the Security & Compliance steps, only ImageScannerStep generates a script that ash rejects at line 20.