sha256:e05752e62d10bfdd49f6362fb3f4a0d242e195bc46b0f9f6516fb298dbf8c95b
Last pushed
about 21 hours by sbx
Type
Sandbox Kit
Manifest digest
sha256:e05752e62d10bfdd49f6362fb3f4a0d242e195bc46b0f9f6516fb298dbf8c95b
schemaVersion: "3"
displayName: GitHub SSH
description: Pre-populates GitHub host keys so SSH operations work without interactive host verification prompts.
version: 1.1.0
kind: mixin
provides:
- github-ssh
requires:
- deb/jq
- deb/openssh-client
capabilities:
- type: com.docker.sandbox/ssh-agent@1
config:
authenticate:
- github.com
phase: runtime
unrestricted: false
- type: com.docker.sandbox/network-policy@1
config:
install:
allow:
- api.github.com
runtime:
allow:
- github.com
- type: com.docker.sandbox/lifecycle@1
config:
install:
- command: |
mkdir -p /home/agent/.ssh
chmod 700 /home/agent/.ssh
chown agent:agent /home/agent/.ssh
curl -s https://api.github.com/meta \
| jq -r '.ssh_keys[] | "github.com " + .' \
>> /home/agent/.ssh/known_hosts
chmod 644 /home/agent/.ssh/known_hosts
chown agent:agent /home/agent/.ssh/known_hosts
description: Fetch and install GitHub host keys from api.github.com/meta
user: "0"
- type: com.docker.sandbox/agent-context@1
config:
contentFile: /usr/share/sandbox/kit/github-ssh/github-ssh-context.md