Curling latest Trivy version seems to fail and thus fail a Travis CI build #1322
Unanswered
NathanPabon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm currently running into in an issue where a script in our Travis CI workflow that retrieves and runs the latest version of Trivy is failing when the build occurs.
This is the script we're using to start a Trivy scan in our CI workflow.
It is based off of the script in the following page: https://aquasecurity.github.io/trivy/v0.20.1/advanced/integrations/travis-ci/.
The
REPO_NAME
variable is just the name of the Docker image.The resulting output in our build log is the following.
My assumption is that CURLing the latest Trivy version is somehow failing and results in the environment variable
VERSION
being set to an empty string.As consequence, the
wget
line is being provided with no version number which leads it to 404 and thus fail the build.Strangely enough, if you wait a few minutes and try again it seems to resolve itself.
I was wondering if anyone else here may be running into this issue themselves and what I can do to remediate this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions