mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
feat(docker): Add ssh-client to Docker image to access private modules via ssh (#553)
This commit is contained in:
parent
6cdea1b431
commit
1d76157c9d
2 changed files with 8 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue