Skip to content

Commit 762e8ab

Browse files
Merge branch 'security-fix' of github.com:codefresh-io/cf-git-cloner into security-fix
2 parents a30accf + 46c0131 commit 762e8ab

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.ssh/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
IdentityFile ~/.ssh/codefresh
1+
IdentityFile ~/.ssh/codefresh

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ RUN apk add --no-cache --virtual deps openssl && \
1111
git lfs install && \
1212
apk del deps
1313

14-
#add ssh record on which ssh key to use
14+
# add ssh record on which ssh key to use
1515
COPY ./.ssh/ /root/.ssh/
1616

17+
# add fingerprint for major git providers
18+
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
19+
RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts
20+
1721
COPY ./start.sh /run/start.sh
1822
RUN chmod +x /run/start.sh
1923

Dockerfile.aarch64

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ RUN apk add --no-cache --virtual deps openssl && \
99
git lfs install && \
1010
apk del deps
1111

12-
#add ssh record on which ssh key to use
12+
# add ssh record on which ssh key to use
1313
COPY ./.ssh/ /root/.ssh/
1414

15+
# add fingerprint for major git providers
16+
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
17+
RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts
18+
1519
COPY ./start.sh /run/start.sh
1620
RUN chmod +x /run/start.sh
1721

0 commit comments

Comments
 (0)