Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f32c67

Browse files
committed
update git for CVE-2024-32002
1 parent 5eb40db commit 0f32c67

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

docker/centos7/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ RUN source /opt/rh/devtoolset-${DEVTOOLSET_VERSION}/enable && \
144144

145145
# build/install git
146146
RUN source /opt/rh/devtoolset-${DEVTOOLSET_VERSION}/enable && \
147-
curl -Ls https://github.com/git/git/archive/v2.30.0.tar.gz -o git.tar.gz && \
148-
echo "8db4edd1a0a74ebf4b78aed3f9e25c8f2a7db3c00b1aaee94d1e9834fae24e61 git.tar.gz" > git-sha.txt && \
147+
curl -Ls https://github.com/git/git/archive/refs/tags/v2.45.1.tar.gz -o git.tar.gz && \
148+
echo "d98c8f70d58f49f7546d59b25e25f2deae6999eb036a33b0fe6f5d07c33f67c6 git.tar.gz" > git-sha.txt && \
149149
sha256sum --quiet -c git-sha.txt && \
150150
mkdir git && \
151151
tar --strip-components 1 --no-same-owner --directory git -xf git.tar.gz && \

docker/rockylinux9/Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ RUN dnf install -y --enablerepo devel --allowerasing \
4141
wget \
4242
zlib-devel \
4343
gcc-c++ \
44-
git \
4544
libstdc++-static \
4645
libunwind \
4746
libunwind-devel \
@@ -120,6 +119,20 @@ RUN curl -Ls https://github.com/axboe/liburing/archive/refs/tags/liburing-2.1.ta
120119
cd ../ && \
121120
rm -rf /tmp/*
122121

122+
# build/install git
123+
RUN curl -Ls https://github.com/git/git/archive/refs/tags/v2.45.1.tar.gz -o git.tar.gz && \
124+
echo "d98c8f70d58f49f7546d59b25e25f2deae6999eb036a33b0fe6f5d07c33f67c6 git.tar.gz" > git-sha.txt && \
125+
sha256sum --quiet -c git-sha.txt && \
126+
mkdir git && \
127+
tar --strip-components 1 --no-same-owner --directory git -xf git.tar.gz && \
128+
cd git && \
129+
make configure && \
130+
./configure && \
131+
make && \
132+
make install && \
133+
cd ../ && \
134+
rm -rf /tmp/*
135+
123136
# build/install ninja
124137
RUN curl -Ls https://github.com/ninja-build/ninja/archive/refs/tags/v1.10.2.zip -o ninja.zip && \
125138
echo "4e7b67da70a84084d5147a97fcfb867660eff55cc60a95006c389c4ca311b77d ninja.zip" > ninja-sha.txt && \

0 commit comments

Comments
 (0)