#Disable cache for specific exec

1 messages · Page 1 of 1 (latest)

unkempt trail
#

Hello team.
In my pipeline, I am running a vulnerability scan with trivy. But the results are cached so I cannot access them directly.
Is there a way to disable cache for some commands ?

cosmic granite
#

Hey 👋 The best way right now is to set an environment variable that will be different for each execution, like a timestamp. For example using the Go SDK:

.WithEnvVariable("CACHEBUSTER", time.Now())