Sign inSign up

sbx/github-ssh-kit:20260813-7e3d399d94b2c00148630e3472a1da5d3654f679

Manifest digest

sha256:ccc00dbcb1588d27c79b08f9923d357e1d5fbc5dc683af8ae9feb9a11e4ca977

Last pushed

about 1 month by dockerpublicbot

Type

Sandbox Kit

Manifest digest

sha256:ccc00dbcb1588d27c79b08f9923d357e1d5fbc5dc683af8ae9feb9a11e4ca977

yaml
schemaVersion: "2"
kind: mixin
name: github-ssh
displayName: GitHub SSH
description: Pre-populates GitHub host keys so SSH operations work without interactive host verification prompts.
agentInstructions:
    content: |
        ## GitHub SSH authentication

        GitHub's host keys are pre-populated in `~/.ssh/known_hosts`, so SSH
        operations to GitHub (clone, push, pull) work without interactive host
        verification prompts.
permissions:
    network:
        allow:
            - github.com
            - api.github.com
setup:
    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
          user: "0"
          description: Fetch and install GitHub host keys from api.github.com/meta