Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrency issue using the trivy binary directly #15

Open
joaoacmota opened this issue Oct 19, 2022 · 1 comment · May be fixed by #17
Open

Concurrency issue using the trivy binary directly #15

joaoacmota opened this issue Oct 19, 2022 · 1 comment · May be fixed by #17

Comments

@joaoacmota
Copy link

joaoacmota commented Oct 19, 2022

when setting up docker: false as recommended by #3 I run into concurrency issues because the binary is installed always on the same path /tmp/bin and the task forces a recursive remove of that path before installation. Concurrent builds bump into issues because of this.

@joaoacmota
Copy link
Author

Logs of the issue:

2022-10-19T12:12:35.0784064Z Run requested using local Trivy binary...
2022-10-19T12:12:35.0786422Z Finding correct Trivy version to install...
2022-10-19T12:12:35.0788644Z Required Trivy version is v0.29.2
2022-10-19T12:12:35.0809149Z Downloading Trivy...
2022-10-19T12:12:35.0920532Z Downloading: https://github.com/aquasecurity/trivy/releases/download/v0.29.2/trivy_0.29.2_Linux-64bit.tar.gz
2022-10-19T12:12:35.8130978Z Extracting Trivy...
2022-10-19T12:12:35.8131596Z Extracting archive
2022-10-19T12:12:35.8147206Z [command]/bin/tar xC /tmp/ -f /tmp/trivy
2022-10-19T12:12:36.8918681Z Setting permissions...
2022-10-19T12:12:36.8930999Z [command]/bin/chmod +x /tmp/trivy
2022-10-19T12:12:36.9057310Z /bin/chmod: cannot access '/tmp/trivy': No such file or directory
2022-10-19T12:12:36.9063806Z ##[error]The process '/bin/chmod' failed with exit code 1
2022-10-19T12:12:36.9139645Z ##[section]Finishing: trivy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant