Skip to content

Support Composer auth via SSH - #15

Merged
ebitkov merged 1 commit into
mainfrom
composer-ssh-auth
Nov 12, 2026
Merged

ebitkov merged 1 commit into
mainfrom
composer-ssh-auth

Conversation

@ebitkov

@ebitkov ebitkov commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Closes #3

Adds an ssh-private-key input. When set, a step before composer install starts ssh-agent, loads the key, exports SSH_AUTH_SOCK/SSH_AGENT_PID to later steps, and adds GitHub's host keys to ~/.ssh/known_hosts. This lets Composer install private packages from SSH URLs like git@github.com:org/repo.git.

- uses: ebitkov/build-symfony@v2
  with:
    ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

Notes:

  • Only github.com host keys are trusted. Other git hosts would need an extra known-hosts input.
  • Checkout still authenticates with the token, not the SSH key.
  • No CI test yet, because it needs a deploy-key secret on a private test repo.

🤖 Generated with Claude Code

Add an ssh-private-key input that loads the key into ssh-agent before
Composer runs, so private packages fetched via SSH can be installed.

Closes #3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ebitkov
ebitkov merged commit 0b12e55 into main Nov 12, 2026
11 checks passed
@ebitkov
ebitkov deleted the composer-ssh-auth branch November 12, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Composer Auth via SSH

1 participant