docker / scout-action

Docker Scout GitHub Action
https://docker.com/products/docker-scout
Other
86 stars 27 forks source link

Matrix build overwrites comments #52

Open rwaffen opened 2 months ago

rwaffen commented 2 months ago

Hi,

when i build multiple containers in a gha matrix and also scan them, only one output from docker scout will end up in the comments. only the last (?) i think.

for reference see here: https://github.com/voxpupuli/container-voxbox/pull/38

I have to build two versions to support two software versions inside, and i want to scan and see the output of both.

cheers, Robert

eunomie commented 2 months ago

Hi @rwaffen

Thanks for reporting the issue.

Yes you're right, currently it will overwrite the existing comment. You can try by setting keep-previous-comments: true (see https://github.com/docker/scout-action?tab=readme-ov-file#pull-request-comments) so it will add a new comment for each run. It's not a perfect solution as it will hide previous content behind a "Outdated" line but it might help short term by still keeping all the comments content.

I'll keep you posted once it will be fixed.

rwaffen commented 2 months ago

thx for the quick answer! it's not perfect, but something... thx :).

seeing forward to a general solution for this :)