Skip to content

Commit

Permalink
feat(docker): Add ssh-client to Docker image to access private module…
Browse files Browse the repository at this point in the history
…s via ssh (#553)
  • Loading branch information
lchastel committed Aug 15, 2023
1 parent 6cdea1b commit 1d76157
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/.container-structure-test-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ commandTests:
command: "su-exec"
expectedOutput: ["^Usage: su-exec user-spec command \\[args\\]\\n$"]

- name: "ssh"
command: "ssh"
args: [ "-V" ]
expectedError: ["^OpenSSH_9\\.[0-9]+"]

fileExistenceTests:
- name: 'terrascan init'
path: '/root/.terrascan/pkg/policies/opa/rego/github/github_repository/privateRepoEnabled.rego'
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ RUN apk add --no-cache \
musl-dev=~1 \
gcc=~12 \
# entrypoint wrapper deps
su-exec=~0.2
su-exec=~0.2 \
# ssh-client for external private module in ssh
openssh-client=~9

# Copy tools
COPY --from=builder \
Expand Down

0 comments on commit 1d76157

Please sign in to comment.