aquasecurity / trivy-azure-pipelines-task

An Azure Pipelines Task for trivy
https://marketplace.visualstudio.com/items?itemName=AquaSecurityOfficial.trivy-official
MIT License
47 stars 34 forks source link

Fatal error when running trivy task #64

Open msmolka opened 5 months ago

msmolka commented 5 months ago

When trying to run trivy task I have issue obraz

uryszawa commented 5 months ago

I confirm, we've got same issue for an hour.

MCBBosch commented 5 months ago

same here

jstanesic commented 5 months ago

Got the same error as well. `##[error]Unable to process command '##vso[task.addattachment type=JSON_RESULT;name=trivy0.375769533809865.json;]/tmp/trivy-results-0.5830038273165712.json' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)

[error]Value cannot be null. (Parameter 'Cannot upload task attachment file, attachment file location is not specified or attachment file does not exist on disk.')

`

jstanesic commented 5 months ago

Running it without docker as noted here helped

MCBBosch commented 5 months ago

hard coding the version also seems to fix the issue:

image
justastudenttryingtolearn commented 3 months ago

https://github.com/aquasecurity/trivy-azure-pipelines-task/pull/70 this PR should fix the problem once it's released

Ketone16 commented 1 week ago

Any solution for below issue

[error]Unable to process command '##vso[task.addattachment type=JSON_RESULT;name=trivy0.375769533809865.json;]/tmp/trivy-results-0.5830038273165712.json' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296) ##[error]Value cannot be null. (Parameter 'Cannot upload task attachment file, attachment file location is not specified or attachment file does not exist on disk.')

Ketone16 commented 1 week ago

Any workaround someone come across to resolve this issue.

I am facing this issue continuously. @MCBBosch ??? @msmolka ???