Closed navalBhagat closed 2 weeks ago
Hey @navalBhagat, kind of confused because @swagger-bot merged this PR #10163, last week, but I couldn't find the newer image in the docker hub, is the newer image created and pushed to docker or the image is not pushed yet?
Hi @sahilpatil2997
Sorry for the delay.
I think it needs to be force upgraded, and I only think the issue will be fixed once the latest version of swagger's image is pushed to docker hub because the current check is done based on the image pulled from docker hub.
If you approve this, I'll merge it, but I'm not sure how the pushing of the image to Docker Hub works?
I'm unable to merge. I still see this:
I'm unable to merge. I still see this:
I think one of the maintainer should approve this PR
Closing this in favor of https://github.com/swagger-api/swagger-ui/pull/10192.
The base image is already updated on master
branch. Unfortunately we'll also not going to go for full apk upgrade --no-cache
change. Adding apk upgrade is generally avoided for the sake of stability and reproducibility.
Thank you for your effort here!
Hey @char0n, I did pull the latest image from the docker hub but still the image is using an older version of NGINX image, can you please look into it?
Description
nginx:1.27.2-alpine
.RUN apk upgrade --no-cache
was added to make sure all the patched packages used byalpine
are pulled in.Motivation and Context
This change upgrades the base nginx image since it uses the newer version of
alpine
with security vulnerability fixes. This was reported in issue #10151.How Has This Been Tested?
I updated the workflow action:
Security Scan for docker image
to build the image in the CI pipeline and runtrivy
on this locally-built image. The failing build (seeold
screenshot below) was fixed with no vulnerabilities.I undid the workflow changes. But here is the workflow I used to verify that this upgrades fixes the security vulnerability.
The
new
screenshot below shows the fixed version of the security scan using this new image. (Upgrade toalpine 3.20
)Screenshots (if appropriate):
Old:
New:
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests