ssh-agent
ssh-agent copied to clipboard
Multiple SSH keys not working on GitHub Enterprise
Hi!
I followed the docs to setup multiple ssh keys by generating them with comment parameter -C and adding the git URL from my GitHub Enterprise repo.
https://private-github.myenterprise/org/repo.git
I ensured correct keys were set as secret and deploy key but it seems correct keys are not mapped.
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.DEPENDENCY_ACCESS_2 }}
${{ secrets.DEPENDENCY_ACCESS_2 }}
ERROR: Permission to abc denied to deploy key fatal: Could not read from remote repository.
Might it be because only github.com URLs are supported? https://github.com/webfactory/ssh-agent/blob/dc622c59e471395a5b1e0d96279fe835c87a218b/index.js#L67
Thanks