[P9] Fix trivy scan output not reaching S3 upload steps #104
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Trivy scan steps (plugin-trivy) write JSON output files (e.g.
notebooks-scan.json) but the S3 upload steps reportfile does not exist. The trivy plugin likely writes to its own working directory rather than the shared Woodpecker workspace.With the DinD buildx setup, buildx steps and trivy steps run in different contexts:
The scan output file is written inside the trivy container but is not available to the S3 upload step.
Options
docker run aquasec/trivy ... -o /woodpecker/src/.../scan.jsonAcceptance criteria
s3://gitea/ci/homelab/stack/<sha>/