Skip to content

Commit 293273a

Browse files
committed
fix: pin git version
ran locally and changed Dockerfile from ``` CMD ["/action/workspace/stale_repos.py"] ENTRYPOINT ["python3", "-u"] ``` to ``` ENTRYPOINT ["dpkg", "-l", "git"] ``` and then ran `docker run -it --rm --name debug $(docker images --format "{{.ID}} {{.CreatedAt}}" | sort -rk 2 | awk 'NR==1{print $1}') -- /bin/sh` to echo out the git version installed `docker images --format "{{.ID}} {{.CreatedAt}}" | sort -rk 2 | awk 'NR==1{print $1}` gets the last image id created after sorting list by creation date Signed-off-by: jmeridth <[email protected]>
1 parent f4a521e commit 293273a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ COPY requirements.txt stale_repos.py /action/workspace/
1717

1818
RUN python3 -m pip install --no-cache-dir -r requirements.txt \
1919
&& apt-get -y update \
20-
&& apt-get -y install --no-install-recommends git \
20+
&& apt-get -y install --no-install-recommends git=1:2.39.5-0+deb12u1 \
2121
&& rm -rf /var/lib/apt/lists/*
2222

2323
CMD ["/action/workspace/stale_repos.py"]

0 commit comments

Comments
 (0)