Unable to Save Trivy Report to Host Directory #8004
Replies: 1 comment
-
closing as this doesn't seem to be and issue relating to Trivy, rather a Docker/Jenkins usage |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I am integrating Trivy with Jenkins using the Docker version. Each pipeline job runs on a Kubernetes-based Jenkins agent.
Since Trivy in Docker stores reports inside the container, I’ve mounted the host path (/home/jenkins/agent) to the container path (/output) to retrieve the report after the scan.
Trivy Command Used:
Problem:
Despite running the above command, the report file is not saved in the host path. Here's the error message from the pipeline log:
Pipeline Log Snippet:
Expected Behavior:
The Trivy report should be saved in /home/jenkins/agent/trivy-report-test.html on the host machine.
Steps to Reproduce:
Run the Trivy command (as provided above) within a Jenkins pipeline.
Check the host directory for the report.
Additional Context:
Jenkins agents run as Kubernetes pods.
Permissions on /home/jenkins/agent allow read and write operations.
Please let me know if you need more details or any specific configurations.
Target
Container Image
Scanner
Vulnerability
Output Format
Template
Mode
Standalone
Operating System
Jenkins agent (linux)
Version
Beta Was this translation helpful? Give feedback.
All reactions