Skip to content

Commit

Permalink
fix(ci): Add the github keys to the ssh known hosts file (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Jul 9, 2024
1 parent d5db5b2 commit 9994667
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/runner.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ RUN adduser --disabled-password --gecos "" --uid $RUNNER_UID runner \
&& usermod -aG docker runner \
&& echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers \
&& echo "Defaults env_keep += \"DEBIAN_FRONTEND\"" >> /etc/sudoers

# GitHub ssh keys
RUN mkdir -p /home/runner/.ssh \
&& chmod 700 /home/runner/.ssh \
&& ssh-keyscan github.com >> /home/runner/.ssh/known_hosts

# Adjust permissions
RUN chown -R runner:runner /home/runner

ENV HOME=/home/runner
USER runner
WORKDIR /home/runner

0 comments on commit 9994667

Please sign in to comment.