py-trivy job fails with error trivy: command not found

Describe the bug

The py-trivy job seems to fail complaining that trivy command cannot be found.

Expected behavior

The job should run without failing.

Actual behavior

Fails complaining about not being able to find the trivy command.

Logs and/or screenshots

/usr/bin/bash: line 1144: trivy: command not found

Context & Configuration

This should be reproduced in any CI job that had enabled the trivy job.

Upon looking at the template, it looks like a bug in generating the trivy code quality report introduced in 6b929ba5. It should be using $python_trivy instead of directly calling trivy.

Edited by Nadun De Silva